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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user