Example usage for org.springframework.batch.test StepRunner StepRunner

List of usage examples for org.springframework.batch.test StepRunner StepRunner

Introduction

In this page you can find the example usage for org.springframework.batch.test StepRunner StepRunner.

Prototype

public StepRunner(JobLauncher launcher, JobRepository jobRepository) 

Source Link

Usage

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;
}