From b0e4365e04fe2d7d83f757f72660bef5f7e2b6a7 Mon Sep 17 00:00:00 2001 From: wuweida <2918581207@qq.com> Date: Thu, 12 May 2022 11:17:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hisense/monitormanage/controller/Controller.java | 6 ++---- .../monitormanage/MonitorManageApplicationTests.java | 8 +++++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/hisense/monitormanage/controller/Controller.java b/src/main/java/com/hisense/monitormanage/controller/Controller.java index 753726c..1b58036 100644 --- a/src/main/java/com/hisense/monitormanage/controller/Controller.java +++ b/src/main/java/com/hisense/monitormanage/controller/Controller.java @@ -182,11 +182,9 @@ public class Controller { String split = splits[1]; channelLabelDto.setNodeName(split); - Result success = Result.success(channelLabelDto); - - return success; } - return Result.error(""); + + return Result.success(channelLabelDtos); } /** diff --git a/src/test/java/com/hisense/monitormanage/MonitorManageApplicationTests.java b/src/test/java/com/hisense/monitormanage/MonitorManageApplicationTests.java index 80a0e47..2d65348 100644 --- a/src/test/java/com/hisense/monitormanage/MonitorManageApplicationTests.java +++ b/src/test/java/com/hisense/monitormanage/MonitorManageApplicationTests.java @@ -2,7 +2,6 @@ package com.hisense.monitormanage; import com.alibaba.fastjson.JSONObject; import com.hisense.monitormanage.service.MonitorService; -import lombok.AllArgsConstructor; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; @@ -16,8 +15,15 @@ class MonitorManageApplicationTests { @Autowired private MonitorService monitorService; + @Test void contextLoads() { + + } + + @Test + void start1() { + monitorService.start1(); }