List of usage examples for org.springframework.batch.test StepRunner StepRunner
public StepRunner(JobLauncher launcher, JobRepository jobRepository)
From source file:org.springframework.batch.test.AbstractJobTests.java
/** * Convenient method for subclasses to grab a {@link StepRunner} for running * steps by name./*from w ww.j a va2 s. c o m*/ * * @return a {@link StepRunner} */ protected StepRunner getStepRunner() { if (this.stepRunner == null) { this.stepRunner = new StepRunner(getJobLauncher(), getJobRepository()); } return this.stepRunner; }