From b436510cad533080ae641023215623489628c694 Mon Sep 17 00:00:00 2001 From: chenlinghy Date: Fri, 8 May 2020 17:26:55 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM:=201.=20=E5=88=A0=E9=99=A4=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=E7=9A=84import=202.=20=E5=A2=9E=E5=8A=A0=E6=B8=85?= =?UTF-8?q?=E6=B4=97=E4=BB=BB=E5=8A=A1=E5=86=92=E7=83=9F=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/java/com/dispose/TestSuit/SmokeTest.java | 4 +++- .../controller/TaskControllerExceptionSmokeTest.java | 6 ------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/test/java/com/dispose/TestSuit/SmokeTest.java b/src/test/java/com/dispose/TestSuit/SmokeTest.java index aebb212c..b808d7c7 100644 --- a/src/test/java/com/dispose/TestSuit/SmokeTest.java +++ b/src/test/java/com/dispose/TestSuit/SmokeTest.java @@ -1,6 +1,7 @@ package com.dispose.TestSuit; import com.dispose.controller.AuthControllerExceptionSmokeTest; +import com.dispose.controller.TaskControllerExceptionSmokeTest; import org.junit.runner.RunWith; import org.junit.runners.Suite; @@ -9,7 +10,8 @@ import org.junit.runners.Suite; */ @RunWith(Suite.class) @Suite.SuiteClasses({ - AuthControllerExceptionSmokeTest.class + AuthControllerExceptionSmokeTest.class, + TaskControllerExceptionSmokeTest.class }) public class SmokeTest { diff --git a/src/test/java/com/dispose/controller/TaskControllerExceptionSmokeTest.java b/src/test/java/com/dispose/controller/TaskControllerExceptionSmokeTest.java index daf09b0c..938f9254 100644 --- a/src/test/java/com/dispose/controller/TaskControllerExceptionSmokeTest.java +++ b/src/test/java/com/dispose/controller/TaskControllerExceptionSmokeTest.java @@ -2,10 +2,7 @@ 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.common.TaskInfoData; import com.dispose.pojo.vo.task.StartTaskRsp; -import com.dispose.pojo.vo.task.TaskInfoRsp; import com.fasterxml.jackson.databind.ObjectMapper; import lombok.extern.slf4j.Slf4j; import org.junit.Assert; @@ -22,9 +19,6 @@ import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; import javax.annotation.Resource; - -import java.util.List; - import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;