parent
f2a1788eae
commit
e98d71bd2c
|
@ -195,7 +195,7 @@ public class TaskControllerSmokeTest extends InitTestEnvironment {
|
||||||
List<TaskInfoData> taskInfoList = startTaskRsp.getItems();
|
List<TaskInfoData> taskInfoList = startTaskRsp.getItems();
|
||||||
for (TaskInfoData task : taskInfoList
|
for (TaskInfoData task : taskInfoList
|
||||||
) {
|
) {
|
||||||
Assert.assertNotNull(task.getTaskId());
|
Assert.assertNotNull(task.getId());
|
||||||
Assert.assertNotNull(task.getTaskId());
|
Assert.assertNotNull(task.getTaskId());
|
||||||
Assert.assertNotNull(task.getStartTime());
|
Assert.assertNotNull(task.getStartTime());
|
||||||
Assert.assertNotNull(task.getDisposeTime());
|
Assert.assertNotNull(task.getDisposeTime());
|
||||||
|
@ -204,8 +204,8 @@ public class TaskControllerSmokeTest extends InitTestEnvironment {
|
||||||
|
|
||||||
if (task.getStatus() == 0) {
|
if (task.getStatus() == 0) {
|
||||||
Assert.assertEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode()));
|
Assert.assertEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode()));
|
||||||
} else if (task.getStatus() == 30) {
|
} else if (task.getStatus() == 19) {
|
||||||
Assert.assertEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_NOSUCHTASK.getCode()));
|
Assert.assertEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_NOSUCHDEVICE.getCode()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue