|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.batch.test.StepRunner
public class StepRunner
Utility class for executing steps outside of a Job
. This is useful in
end to end testing in order to allow for the testing of a step individually
without running every Step in a job.
SimpleJob
Field Summary | |
---|---|
protected Log |
logger
Logger |
Constructor Summary | |
---|---|
StepRunner(JobLauncher launcher,
JobRepository jobRepository)
|
Method Summary | |
---|---|
JobExecution |
launchStep(Step step)
Launch just the specified step as its own job. |
JobExecution |
launchStep(Step step,
ExecutionContext jobExecutionContext)
Launch just the specified step as its own job. |
JobExecution |
launchStep(Step step,
JobParameters jobParameters)
Launch just the specified step as its own job. |
JobExecution |
launchStep(Step step,
JobParameters jobParameters,
ExecutionContext jobExecutionContext)
Launch just the specified step as its own job. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Log logger
Constructor Detail |
---|
public StepRunner(JobLauncher launcher, JobRepository jobRepository)
Method Detail |
---|
public JobExecution launchStep(Step step)
stepName
- The name of the step to launch
public JobExecution launchStep(Step step, ExecutionContext jobExecutionContext)
stepName
- The name of the step to launchjobExecutionContext
- An ExecutionContext whose values will be
loaded into the Job ExecutionContext prior to launching the step.
public JobExecution launchStep(Step step, JobParameters jobParameters)
stepName
- The name of the step to launchjobParameters
- The JobParameters to use during the launch
public JobExecution launchStep(Step step, JobParameters jobParameters, ExecutionContext jobExecutionContext)
stepName
- The name of the step to launchjobParameters
- The JobParameters to use during the launchjobExecutionContext
- An ExecutionContext whose values will be
loaded into the Job ExecutionContext prior to launching the step.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |