|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 org.apache.commons.logging.Log |
logger
Logger |
| Constructor Summary | |
|---|---|
StepRunner(org.springframework.batch.core.launch.JobLauncher launcher,
org.springframework.batch.core.repository.JobRepository jobRepository)
|
|
| Method Summary | |
|---|---|
org.springframework.batch.core.JobExecution |
launchStep(org.springframework.batch.core.Step step)
Launch just the specified step as its own job. |
org.springframework.batch.core.JobExecution |
launchStep(org.springframework.batch.core.Step step,
org.springframework.batch.item.ExecutionContext jobExecutionContext)
Launch just the specified step as its own job. |
org.springframework.batch.core.JobExecution |
launchStep(org.springframework.batch.core.Step step,
org.springframework.batch.core.JobParameters jobParameters)
Launch just the specified step as its own job. |
org.springframework.batch.core.JobExecution |
launchStep(org.springframework.batch.core.Step step,
org.springframework.batch.core.JobParameters jobParameters,
org.springframework.batch.item.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 org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public StepRunner(org.springframework.batch.core.launch.JobLauncher launcher,
org.springframework.batch.core.repository.JobRepository jobRepository)
| Method Detail |
|---|
public org.springframework.batch.core.JobExecution launchStep(org.springframework.batch.core.Step step)
stepName - The name of the step to launch
public org.springframework.batch.core.JobExecution launchStep(org.springframework.batch.core.Step step,
org.springframework.batch.item.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 org.springframework.batch.core.JobExecution launchStep(org.springframework.batch.core.Step step,
org.springframework.batch.core.JobParameters jobParameters)
stepName - The name of the step to launchjobParameters - The JobParameters to use during the launch
public org.springframework.batch.core.JobExecution launchStep(org.springframework.batch.core.Step step,
org.springframework.batch.core.JobParameters jobParameters,
org.springframework.batch.item.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 | ||||||||