REM:
1. 修改manager层设备任务管理的单元测试
This commit is contained in:
chenlinghy 2020-09-02 16:24:22 +08:00
parent c40e1154ae
commit 26cfc8cd2f
1 changed files with 7 additions and 8 deletions

View File

@ -73,13 +73,13 @@ public class DisposeTaskManagerTest {
log.info("runningResult-->{}", runningResult); log.info("runningResult-->{}", runningResult);
// if (v.getCurrentStatus() == DisposeTaskStatus.TASK_FINISHED if (v.getCurrentStatus() == DisposeTaskStatus.TASK_FINISHED
// || v.getCurrentStatus() == DisposeTaskStatus.TASK_CANCELED || v.getCurrentStatus() == DisposeTaskStatus.TASK_CANCELED
// || v.getCurrentStatus() == DisposeTaskStatus.TASK_EXPIRED) { || v.getCurrentStatus() == DisposeTaskStatus.TASK_EXPIRED) {
// Assert.assertFalse(runningResult); Assert.assertNull(runningResult);
// } else { } else {
// Assert.assertTrue(runningResult); Assert.assertNotNull(runningResult);
// } }
}); });
} }
@ -188,7 +188,6 @@ public class DisposeTaskManagerTest {
Assert.assertNotEquals(taskList.size(), 0); Assert.assertNotEquals(taskList.size(), 0);
}else { }else {
Assert.assertNull(task); Assert.assertNull(task);
Assert.assertEquals(taskList.size(), 0);
} }
} }