Account for differences between step names in SimpleJob and FlowJob
This commit is contained in:
@@ -211,7 +211,10 @@ public abstract class AbstractJobTests implements ApplicationContextAware {
|
||||
* @return JobExecution
|
||||
*/
|
||||
public JobExecution launchStep(String stepName, JobParameters jobParameters, ExecutionContext jobExecutionContext) {
|
||||
Step step = this.job.getStep(job.getName()+"."+stepName);
|
||||
Step step = this.job.getStep(stepName);
|
||||
if (step == null) {
|
||||
step = this.job.getStep(this.job.getName() + "." + stepName);
|
||||
}
|
||||
if (step == null) {
|
||||
throw new IllegalStateException("No Step found with name: [" + stepName + "]");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user