BATCH-1053: Updated javadocs to explain the behavior of getStep and getState if the step/state is not found.

This commit is contained in:
dhgarrette
2009-02-03 16:22:08 +00:00
parent b4fcc457c5
commit b09e1ece01
6 changed files with 17 additions and 16 deletions

View File

@@ -138,19 +138,13 @@ public abstract class AbstractJobTests {
}
/**
* Launch just the specified step in the job.
* Launch just the specified step in the job. An IllegalStateException is thrown
* if there is no Step with the given name.
*
* @param stepName
*/
public JobExecution launchStep(String stepName) {
Step step;
try {
step = this.job.getStep(stepName);
}
catch (IllegalArgumentException e) {
throw new IllegalStateException("No Step found with name: [" + stepName + "]", e);
}
return getStepRunner().launchStep(step);
return getStepRunner().launchStep(this.job.getStep(stepName));
}
/**