RESOLVED - issue BATCH-973: Switch RetryPolicy back to Throwable instead of Exception as in 1.x

http://jira.springframework.org/browse/BATCH-973
This commit is contained in:
dsyer
2009-09-24 08:24:47 +00:00
parent ab5ece862a
commit 6ef8865ce2
18 changed files with 64 additions and 43 deletions

View File

@@ -99,10 +99,10 @@ public class FaultTolerantChunkProcessorTests {
}
/**
* An Error pops right back up (no skips, no retry)
* An Error can be retried or skipped but by default it is just propagated
* @throws Exception
*/
@Test(expected=AssertionError.class)
@Test
public void testWriteSkipOnError() throws Exception {
processor.setWriteSkipPolicy(new AlwaysSkipItemSkipPolicy());
processor.setItemWriter(new ItemWriter<String>() {