mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-04 13:17:50 +08:00
update UT in pom.xml
This commit is contained in:
parent
22c4a6a3de
commit
eecf992432
@ -265,7 +265,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<String, Object> notSubprocessRes = processInstanceService.querySubProcessInstanceByTaskId(loginUser, projectName, 1);
|
||||
@ -273,7 +273,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);
|
||||
|
3
pom.xml
3
pom.xml
@ -740,9 +740,6 @@
|
||||
<include>**/service/zk/DefaultEnsembleProviderTest.java</include>
|
||||
<include>**/alert/utils/MailUtilsTest.java</include>
|
||||
<include>**/dao/AlertDaoTest.java</include>
|
||||
|
||||
<include>**/server/master/dispatch/host/RoundRobinHostManagerTest.java</include>
|
||||
<include>**/server/master/dispatch/ExecutorDispatcherTest.java</include>
|
||||
</includes>
|
||||
<!-- <skip>true</skip> -->
|
||||
</configuration>
|
||||
|
Loading…
Reference in New Issue
Block a user