Skip to content

Commit a84467d

Browse files
author
zhangyinghong
committed
fix unit test
1 parent 5be415c commit a84467d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/WorkflowDefinitionServiceTest.java

-5
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
import org.apache.dolphinscheduler.dao.repository.WorkflowDefinitionDao;
8181
import org.apache.dolphinscheduler.dao.repository.WorkflowDefinitionLogDao;
8282
import org.apache.dolphinscheduler.dao.utils.WorkerGroupUtils;
83-
import org.apache.dolphinscheduler.scheduler.api.SchedulerApi;
8483
import org.apache.dolphinscheduler.service.process.ProcessService;
8584
import org.apache.dolphinscheduler.spi.enums.DbType;
8685

@@ -202,9 +201,6 @@ public class WorkflowDefinitionServiceTest extends BaseServiceTestTool {
202201
@Mock
203202
private UserMapper userMapper;
204203

205-
@Mock
206-
private SchedulerApi schedulerApi;
207-
208204
protected User user;
209205
protected Exception exception;
210206
protected final static long projectCode = 1L;
@@ -1362,7 +1358,6 @@ public void testImportWorkflowDefinitionSuccessful() throws URISyntaxException,
13621358
.thenReturn(null);
13631359
when(taskDefinitionMapper.batchInsert(anyList())).thenReturn(1);
13641360
when(taskDefinitionLogMapper.batchInsert(anyList())).thenReturn(1);
1365-
doNothing().when(schedulerApi).insertOrUpdateScheduleTask(eq(1), any());
13661361
WorkflowDefinition successWorkflowDef = new WorkflowDefinition();
13671362
successWorkflowDef.setCode(123);
13681363
when(workflowDefinitionMapper.queryByCode(anyLong())).thenReturn(successWorkflowDef);

0 commit comments

Comments
 (0)