diff --git a/src/test/java/com/dispose/TestSuit/QATest.java b/src/test/java/com/dispose/TestSuit/QATest.java index 4b3de07d..4f314696 100644 --- a/src/test/java/com/dispose/TestSuit/QATest.java +++ b/src/test/java/com/dispose/TestSuit/QATest.java @@ -2,7 +2,8 @@ package com.dispose.TestSuit; import com.dispose.controller.AuthControllerQATest; import com.dispose.controller.AuthControllerSmokeTest; -import com.dispose.controller.TaskControllerExceptionSmokeTest; +import com.dispose.controller.TaskControllerQATest; +import com.dispose.controller.TaskControllerSmokeTest; import org.junit.runner.RunWith; import org.junit.runners.Suite; @@ -10,7 +11,8 @@ import org.junit.runners.Suite; @Suite.SuiteClasses({ AuthControllerQATest.class, AuthControllerSmokeTest.class, - TaskControllerExceptionSmokeTest.class + TaskControllerQATest.class, + TaskControllerSmokeTest.class }) public class QATest { } diff --git a/src/test/java/com/dispose/TestSuit/SmokeTest.java b/src/test/java/com/dispose/TestSuit/SmokeTest.java index 016ca028..e82c10b9 100644 --- a/src/test/java/com/dispose/TestSuit/SmokeTest.java +++ b/src/test/java/com/dispose/TestSuit/SmokeTest.java @@ -1,6 +1,8 @@ package com.dispose.TestSuit; import com.dispose.controller.AuthControllerSmokeTest; +import com.dispose.controller.DeviceNodeInfoControllerSmokeTest; +import com.dispose.controller.TaskControllerSmokeTest; import org.junit.runner.RunWith; import org.junit.runners.Suite; @@ -9,7 +11,9 @@ import org.junit.runners.Suite; */ @RunWith(Suite.class) @Suite.SuiteClasses({ - AuthControllerSmokeTest.class + AuthControllerSmokeTest.class, + DeviceNodeInfoControllerSmokeTest.class, + TaskControllerSmokeTest.class }) public class SmokeTest { diff --git a/src/test/java/com/dispose/controller/DeviceNodeInfoControllerSmokeTest.java b/src/test/java/com/dispose/controller/DeviceNodeInfoControllerSmokeTest.java index d657aee8..4d859a49 100644 --- a/src/test/java/com/dispose/controller/DeviceNodeInfoControllerSmokeTest.java +++ b/src/test/java/com/dispose/controller/DeviceNodeInfoControllerSmokeTest.java @@ -2,7 +2,6 @@ package com.dispose.controller; import com.dispose.Global.InitTestEnvironment; import com.dispose.common.ErrorCode; -import com.dispose.pojo.vo.auth.LoginRsp; import com.dispose.pojo.vo.information.NodeTaskRsp; import com.fasterxml.jackson.databind.ObjectMapper; import lombok.extern.slf4j.Slf4j; diff --git a/src/test/java/com/dispose/controller/DeviceNodeManagerControlllerExceptionSmokeTest.java b/src/test/java/com/dispose/controller/DeviceNodeManagerControlllerExceptionSmokeTest.java index 93723a55..de52f161 100644 --- a/src/test/java/com/dispose/controller/DeviceNodeManagerControlllerExceptionSmokeTest.java +++ b/src/test/java/com/dispose/controller/DeviceNodeManagerControlllerExceptionSmokeTest.java @@ -4,13 +4,9 @@ import com.dispose.Global.InitTestEnvironment; import com.dispose.common.ErrorCode; import com.dispose.pojo.entity.DisposeDevice; import com.dispose.pojo.po.MReturnType; -import com.dispose.pojo.po.ReturnStatus; -import com.dispose.pojo.vo.auth.LoginRsp; -import com.dispose.pojo.vo.common.IDArrayReq; import com.dispose.pojo.vo.common.IDReturnStatus; import com.dispose.pojo.vo.device.AddNodeRetData; import com.dispose.pojo.vo.device.AddNodeRsp; -import com.dispose.pojo.vo.task.StartTaskRsp; import com.dispose.service.DisposeNodeManager; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; @@ -29,8 +25,6 @@ import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; import javax.annotation.Resource; - -import java.util.ArrayList; import java.util.List; import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print;