Utility class for testing batch jobs. It provides methods for launching an entire {@link AbstractJob}, allowing for end to end testing of individual steps, without having to run every step in the job. Any test classes using this utility can set up an instance in the {@link ApplicationContext} as partof the Spring test framework.
This class also provides the ability to run {@link Step}s from a {@link FlowJob} or {@link SimpleJob} individually. By launching {@link Step}s within a {@link Job} on their own, end to end testing of individual steps canbe performed without having to run every step in the job.
It should be noted that using any of the methods that don't contain {@link JobParameters} in their signature, will result in one being createdwith the current system time as a parameter. This will ensure restartability when no parameters are provided.
@author Lucas Ward @author Dan Garrette @author Dave Syer @since 2.1
|
|