REOPENED - issue BATCH-825: Modify JobLauncher contract to not throw exception on job failure.

http://jira.springframework.org/browse/BATCH-825

Cleaned up SimpleJob some.  There was still some odd looping behavior, so I abstracted into another inner method.
This commit is contained in:
lucasward
2008-10-08 21:07:32 +00:00
parent 42f392dba6
commit 5cd3887b3a
3 changed files with 72 additions and 60 deletions

View File

@@ -235,6 +235,7 @@ public class SimpleJobTests extends TestCase {
assertEquals(1, jobExecution.getAllFailureExceptions().size());
assertEquals(exception, jobExecution.getAllFailureExceptions().get(0));
assertEquals(0, list.size());
assertEquals(BatchStatus.FAILED, jobExecution.getStatus());
checkRepository(BatchStatus.FAILED, ExitStatus.FAILED);
}