From 9d06fe7755cf8c90079c622ae30fc5f90d28477f Mon Sep 17 00:00:00 2001 From: qiaozhanwei Date: Fri, 10 Apr 2020 10:10:48 +0800 Subject: [PATCH] update UT in pom.xml --- .../api/service/ProcessInstanceServiceTest.java | 4 ++-- pom.xml | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/ProcessInstanceServiceTest.java b/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/ProcessInstanceServiceTest.java index 71bcda7510..a1b1246df1 100644 --- a/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/ProcessInstanceServiceTest.java +++ b/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/ProcessInstanceServiceTest.java @@ -259,7 +259,7 @@ public class ProcessInstanceServiceTest { //task not sub process TaskInstance taskInstance = getTaskInstance(); - taskInstance.setTaskType(TaskType.HTTP.getDescp()); + taskInstance.setTaskType(TaskType.HTTP.toString()); taskInstance.setProcessInstanceId(1); when(processService.findTaskInstanceById(1)).thenReturn(taskInstance); Map notSubprocessRes = processInstanceService.querySubProcessInstanceByTaskId(loginUser, projectName, 1); @@ -267,7 +267,7 @@ public class ProcessInstanceServiceTest { //sub process not exist TaskInstance subTask = getTaskInstance(); - subTask.setTaskType(TaskType.SUB_PROCESS.getDescp()); + subTask.setTaskType(TaskType.SUB_PROCESS.toString()); subTask.setProcessInstanceId(1); when(processService.findTaskInstanceById(subTask.getId())).thenReturn(subTask); when(processService.findSubProcessInstance(subTask.getProcessInstanceId(), subTask.getId())).thenReturn(null); diff --git a/pom.xml b/pom.xml index 182a842c47..c9831ae616 100644 --- a/pom.xml +++ b/pom.xml @@ -822,9 +822,6 @@ **/dao/mapper/UserMapperTest.java **/dao/utils/DagHelperTest.java **/dao/AlertDaoTest.java - - **/server/master/dispatch/host/RoundRobinHostManagerTest.java - **/server/master/dispatch/ExecutorDispatcherTest.java