IN PROGRESS - issue BATCH-572: Retryable exceptions cannot be skippable

StatefulRetryStepFactoryBean functionality all moved into SkipLimitStepFactoryBean (the former should be removed). TODO: take some more care with exception types that overlap between retry / skip.
This commit is contained in:
dsyer
2008-05-23 12:36:46 +00:00
parent fd6fad60dc
commit 937e898d24
7 changed files with 297 additions and 329 deletions

View File

@@ -52,6 +52,17 @@ public class ExceptionClassifierRetryPolicyTests extends TestCase {
}
}
public void testNullContext() throws Exception {
Map map = new HashMap();
map.put(ExceptionClassifierSupport.DEFAULT, new NeverRetryPolicy());
policy.setPolicyMap(map);
RetryContext context = policy.open(null, null);
assertNotNull(context);
assertTrue(policy.canRetry(context));
}
public void testClassifierOperates() throws Exception {
Map map = new HashMap();