RESOLVED - issue BATCH-472: Exceeding the start limit on a step will cause a vague exception type to be thrown.

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

added package-private StartLimitExceededException (subclass of UnexpectedJobExecutionException), that takes Step as constructor argument and creates appropriate message
This commit is contained in:
robokaso
2008-03-18 09:55:07 +00:00
parent 8768f15581
commit 9f9d909b5a
3 changed files with 17 additions and 3 deletions

View File

@@ -295,7 +295,7 @@ public class SimpleJobTests extends TestCase {
job.execute(jobExecution);
fail("Expected BatchCriticalException");
}
catch (UnexpectedJobExecutionException ex) {
catch (StartLimitExceededException ex) {
// expected
assertTrue("Wrong message in exception: " + ex.getMessage(), ex.getMessage()
.indexOf("start limit exceeded") >= 0);