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(); }