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

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

Another package rename.
This commit is contained in:
dsyer
2008-01-29 10:44:18 +00:00
parent bc9afc4ce1
commit 75c8f9b5c1
7 changed files with 13 additions and 13 deletions

View File

@@ -17,14 +17,14 @@ import org.springframework.util.ClassUtils;
public class StagingItemReaderTests extends AbstractTransactionalDataSourceSpringContextTests {
private StagingItemWriter processor;
private StagingItemWriter writer;
private StagingItemReader provider;
private Long jobId = new Long(11);
public void setProcessor(StagingItemWriter processor) {
this.processor = processor;
public void setProcessor(StagingItemWriter writer) {
this.writer = writer;
}
public void setProvider(StagingItemReader provider) {
@@ -45,10 +45,10 @@ public class StagingItemReaderTests extends AbstractTransactionalDataSourceSprin
}
protected void onSetUpInTransaction() throws Exception {
processor.write("FOO");
processor.write("BAR");
processor.write("SPAM");
processor.write("BUCKET");
writer.write("FOO");
writer.write("BAR");
writer.write("SPAM");
writer.write("BUCKET");
}
protected void onTearDownAfterTransaction() throws Exception {

View File

@@ -1,4 +1,4 @@
package org.springframework.batch.sample.item.processor;
package org.springframework.batch.sample.item.writer;
import java.math.BigDecimal;

View File

@@ -1,4 +1,4 @@
package org.springframework.batch.sample.item.processor;
package org.springframework.batch.sample.item.writer;
import java.math.BigDecimal;

View File

@@ -1,4 +1,4 @@
package org.springframework.batch.sample.item.processor;
package org.springframework.batch.sample.item.writer;
import java.math.BigDecimal;

View File

@@ -1,4 +1,4 @@
package org.springframework.batch.sample.item.processor;
package org.springframework.batch.sample.item.writer;
import junit.framework.TestCase;

View File

@@ -1,4 +1,4 @@
package org.springframework.batch.sample.item.processor;
package org.springframework.batch.sample.item.writer;
import org.springframework.batch.core.domain.Job;
import org.springframework.batch.core.domain.JobExecution;

View File

@@ -1,4 +1,4 @@
package org.springframework.batch.sample.item.processor;
package org.springframework.batch.sample.item.writer;
import junit.framework.TestCase;