Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Anderson Reyes committed Sep 25, 2023
1 parent a83d2b1 commit 490e073
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ private void checkTestDoubleForTaskNode(Node node) {
"Can't execute remote task [%s] for node [%s], "
+ "use SdkTestingExecutor#withTaskOutput or SdkTestingExecutor#withTask "
+ "to provide a test double",
taskName, node.id());
taskName,
node.id());
}

private void checkTestDoubleForWorkflowNode(Node node) {
Expand All @@ -260,7 +261,10 @@ private void checkTestDoubleForWorkflowNode(Node node) {
WorkflowTemplate subWorkflowTemplate = workflowTemplates().get(subWorkflowName);

checkArgument(
subWorkflowTemplate != null, "Can't expand sub workflow [%s] for node [%s]", subWorkflowName, node.id());
subWorkflowTemplate != null,
"Can't expand sub workflow [%s] for node [%s]",
subWorkflowName,
node.id());

checkTestDoublesForNodes(subWorkflowTemplate);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,6 @@ public TestUnaryIntegerIO expand(SdkWorkflowBuilder builder, SumLaunchPlanInput
}
};


IllegalArgumentException e =
assertThrows(
IllegalArgumentException.class,
Expand All @@ -472,8 +471,8 @@ public TestUnaryIntegerIO expand(SdkWorkflowBuilder builder, SumLaunchPlanInput
e.getMessage(),
equalTo(
"Can't execute remote launch plan "
+ "[SumWorkflow] for node [mylaunchplan], use SdkTestingExecutor#withLaunchPlanOutput or "
+ "SdkTestingExecutor#withLaunchPlan to provide a test double"));
+ "[SumWorkflow] for node [mylaunchplan], use SdkTestingExecutor#withLaunchPlanOutput or "
+ "SdkTestingExecutor#withLaunchPlan to provide a test double"));
}

@Test
Expand Down

0 comments on commit 490e073

Please sign in to comment.