stalary commented on code in PR #10553:
URL: https://github.com/apache/dolphinscheduler/pull/10553#discussion_r909164268
##########
dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/controller/ProcessDefinitionControllerTest.java:
##########
@@ -195,8 +195,8 @@ public void testQueryProcessDefinitionByCode() {
putMsg(result, Status.SUCCESS);
result.put(Constants.DATA_LIST, processDefinition);
-
Mockito.when(processDefinitionService.queryProcessDefinitionByCode(user,
projectCode, code)).thenReturn(result);
- Result response =
processDefinitionController.queryProcessDefinitionByCode(user, projectCode,
code);
+
Mockito.when(processDefinitionService.queryProcessDefinitionByCode(user,
projectCode, code, false)).thenReturn(result);
Review Comment:
I met a problem in the ut, I need to query the sub-process in the database,
do you know how I should generate this part of the test data.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]