Skip to content

Commit

Permalink
rename methods
Browse files Browse the repository at this point in the history
  • Loading branch information
adriana-corui committed May 21, 2020
1 parent 1991b64 commit b49642a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public ExecutionStep createFinishExternalFlowStep(Long index,
}

@Override
public ExecutionStep createSetWorkerGroupExternalFlowStep(Long index,
public ExecutionStep createWorkerGroupExternalFlowStep(Long index,
Map<String, Serializable> preStepData,
String stepName,
String workerGroup) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private List<ExecutionStep> buildStepExecutionSteps(
);
}

ExecutionStep workerStep = createSetWorkerGroupStep(currentId++, step, inheritWorkerGroupFromFlow(
ExecutionStep workerStep = createWorkerGroupStep(currentId++, step, inheritWorkerGroupFromFlow(
step, compiledFlow));
stepExecutionSteps.add(workerStep);
ExecutionStep executionStep = createBeginStep(currentId++, step, inheritWorkerGroupFromFlow(
Expand Down Expand Up @@ -251,12 +251,12 @@ private ExecutionStep createBeginStep(Long id, Step step, String workerGroup) {
step.getPreStepActionData(), step.getRefId(), step.getName(), workerGroup);
}

private ExecutionStep createSetWorkerGroupStep(Long id, Step step, String workerGroup) {
private ExecutionStep createWorkerGroupStep(Long id, Step step, String workerGroup) {
if (step instanceof ExternalStep) {
return externalStepFactory.createSetWorkerGroupExternalFlowStep(id, step.getPreStepActionData(),
return externalStepFactory.createWorkerGroupExternalFlowStep(id, step.getPreStepActionData(),
step.getName(), workerGroup);
}
return stepFactory.createSetWorkerGroupStep(id, step.getPreStepActionData(), step.getName(), workerGroup);
return stepFactory.createWorkerGroupStep(id, step.getPreStepActionData(), step.getName(), workerGroup);
}

public void setStepFactory(ExecutionStepFactory stepFactory) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public ExecutionStep createBeginStepStep(Long index, List<Argument> stepInputs,
return createGeneralStep(index, STEP_EXECUTION_DATA_CLASS, "beginStep", actionData);
}

public ExecutionStep createSetWorkerGroupStep(Long index, Map<String, Serializable> preStepData, String stepName,
public ExecutionStep createWorkerGroupStep(Long index, Map<String, Serializable> preStepData, String stepName,
String workerGroup) {
Validate.notNull(preStepData, "preStepData is null");
Map<String, Serializable> actionData = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ ExecutionStep createFinishExternalFlowStep(Long index, Map<String, Serializable>
Map<String, ResultNavigation> navigationValues,
String stepName, String workerGroup, boolean parallelLoop);

ExecutionStep createSetWorkerGroupExternalFlowStep(Long index, Map<String, Serializable> preStepData,
ExecutionStep createWorkerGroupExternalFlowStep(Long index, Map<String, Serializable> preStepData,
String stepName, String workerGroup);
}
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ private void mockWorkerStep(Long stepId, Step step) {
String name = step.getName();
String group = step.getWorkerGroup();
when(stepFactory
.createSetWorkerGroupStep(eq(stepId),
.createWorkerGroupStep(eq(stepId),
eq(preStepActionData), eq(name), eq(group))).thenReturn(new ExecutionStep(stepId));
}

Expand Down

0 comments on commit b49642a

Please sign in to comment.