diff --git a/src/test/java/com/dispose/controller/TaskControllerSmokeTest.java b/src/test/java/com/dispose/controller/TaskControllerSmokeTest.java index dfdec119..d187ba24 100644 --- a/src/test/java/com/dispose/controller/TaskControllerSmokeTest.java +++ b/src/test/java/com/dispose/controller/TaskControllerSmokeTest.java @@ -195,7 +195,7 @@ public class TaskControllerSmokeTest extends InitTestEnvironment { List taskInfoList = startTaskRsp.getItems(); for (TaskInfoData task : taskInfoList ) { - Assert.assertNotNull(task.getTaskId()); + Assert.assertNotNull(task.getId()); Assert.assertNotNull(task.getTaskId()); Assert.assertNotNull(task.getStartTime()); Assert.assertNotNull(task.getDisposeTime()); @@ -204,8 +204,8 @@ public class TaskControllerSmokeTest extends InitTestEnvironment { if (task.getStatus() == 0) { Assert.assertEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode())); - } else if (task.getStatus() == 30) { - Assert.assertEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_NOSUCHTASK.getCode())); + } else if (task.getStatus() == 19) { + Assert.assertEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_NOSUCHDEVICE.getCode())); } } }