OPEN - issue BATCH-320: Refactor ItemWriter as primary collaborator (with wrapper for processor)

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

Fix test (processor -> writer)
This commit is contained in:
dsyer
2008-01-29 10:46:16 +00:00
parent 75c8f9b5c1
commit 073784ebc7
2 changed files with 2 additions and 2 deletions

View File

@@ -101,7 +101,7 @@ public class ItemOrientedTasklet implements Tasklet, Skippable, InitializingBean
*/
public void afterPropertiesSet() throws Exception {
Assert.notNull(itemProvider, "ItemReader must be provided");
Assert.notNull(itemWriter, "ItemProcessor must be provided");
Assert.notNull(itemWriter, "ItemWriter must be provided");
if (itemRecoverer == null && (itemProvider instanceof ItemRecoverer)) {
itemRecoverer = (ItemRecoverer) itemProvider;

View File

@@ -256,7 +256,7 @@ public class ItemOrientedTaskletTests extends TestCase {
try {
module.afterPropertiesSet();
} catch (IllegalArgumentException e) {
assertTrue(e.getMessage().toLowerCase().indexOf("writer") >= 0);
assertTrue("Message did not contain writer: "+e.getMessage(), e.getMessage().toLowerCase().indexOf("writer") >= 0);
}
}