From ba4a1deb6b92fc54e772d319f31d1804af386011 Mon Sep 17 00:00:00 2001 From: zhuangchong Date: Wed, 4 Jan 2023 11:35:15 +0800 Subject: [PATCH] fix ProcessDefinitionServiceTest test error --- .../api/service/ProcessDefinitionServiceTest.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/ProcessDefinitionServiceTest.java b/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/ProcessDefinitionServiceTest.java index 171dbbc8c6..e8f2711f6b 100644 --- a/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/ProcessDefinitionServiceTest.java +++ b/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/ProcessDefinitionServiceTest.java @@ -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