BATCH-1313 & BATCH-1314:

*Added assertion to AbstractBatchLauncherTests to ensure that the job's status is COMPLETED.
 *Fixed broken tests.
This commit is contained in:
dhgarrette
2009-06-28 16:12:50 +00:00
parent a7751c9d01
commit b06a6d86d6
5 changed files with 14 additions and 44 deletions

View File

@@ -30,17 +30,12 @@ import org.springframework.batch.core.job.flow.JobExecutionDecider;
public class LimitDecider implements JobExecutionDecider {
private int count = 0;
private int limit = 1;
/*
* (non-Javadoc)
*
* @see org.springframework.batch.core.job.flow.support.state.JobExecutionDecider#decide(org.springframework.batch.core.JobExecution,
* org.springframework.batch.core.StepExecution)
*/
public FlowExecutionStatus decide(JobExecution jobExecution, StepExecution stepExecution) {
if (++count >= limit) {
return new FlowExecutionStatus("COMPLETE");
return new FlowExecutionStatus("COMPLETED");
}
else {
return new FlowExecutionStatus("CONTINUE");