parent
e78efced36
commit
6b8a61589d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue