mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-02 04:08:31 +08:00
fix ProcessDefinitionServiceTest test error
This commit is contained in:
parent
e1e36f5aa4
commit
ba4a1deb6b
@ -542,12 +542,6 @@ public class ProcessDefinitionServiceTest {
|
||||
|
||||
Assertions.assertDoesNotThrow(() -> processDefinitionService.deleteProcessDefinitionByCode(user, 46L, processDefinitionCode));
|
||||
|
||||
// delete fail
|
||||
Mockito.when(taskDefinitionMapper.deleteByBatchCodes(Arrays.asList(100L, 200L))).thenReturn(1);
|
||||
exception = Assertions.assertThrows(ServiceException.class,
|
||||
() -> processDefinitionService.deleteProcessDefinitionByCode(user, 46L, processDefinitionCode));
|
||||
Assertions.assertEquals(Status.DELETE_TASK_DEFINE_BY_CODE_ERROR.getCode(),
|
||||
((ServiceException) exception).getCode());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user