REM:
1. 添加TaskService单元测试顺序
This commit is contained in:
HuangXin 2020-05-09 18:46:03 +08:00
parent e78efced36
commit 6b8a61589d
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ public class TaskServiceTest extends InitTestEnvironment {
* T 2 start task test.
*/
@Test
public void t2_startTaskTest() {
public void t1_startTaskTest() {
disposeTaskMapper.getAllTaskByStatus(DisposeTaskStatus.TASK_NEW.getCode()).forEach(v -> {
ErrorCode err = taskService.startTask(v.getId());
Assert.assertEquals(err, ErrorCode.ERR_OK);
@ -79,7 +79,7 @@ public class TaskServiceTest extends InitTestEnvironment {
* T 1 stop task test.
*/
@Test
public void t1_stopTaskTest() {
public void t2_stopTaskTest() {
disposeTaskMapper.getAllTaskByStatus(DisposeTaskStatus.TASK_RUNNING.getCode()).forEach(v -> {
ErrorCode err = taskService.stopTask(v.getId());
Assert.assertEquals(err, ErrorCode.ERR_OK);