OPEN - issue BATCH-569: Add RetryOperationsInterceptor with stateful retry
Refactored ItemWriterRetry* to be less dependent on Item* interfaces. Added StatefulRetryOperationsInterceptor.
This commit is contained in:
@@ -102,10 +102,10 @@ public class StatefulRetryStepFactoryBeanTests extends TestCase {
|
||||
|
||||
public void testRecovery() throws Exception {
|
||||
factory.setItemRecoverer(new ItemRecoverer() {
|
||||
public boolean recover(Object item, Throwable cause) {
|
||||
public Object recover(Object item, Throwable cause) {
|
||||
recovered.add(item);
|
||||
assertTrue(TransactionSynchronizationManager.isActualTransactionActive());
|
||||
return true;
|
||||
return item;
|
||||
}
|
||||
});
|
||||
List items = TransactionAwareProxyFactory.createTransactionalList();
|
||||
|
||||
Reference in New Issue
Block a user