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:
@@ -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 {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.springframework.batch.sample.item.processor;
|
||||
package org.springframework.batch.sample.item.writer;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.springframework.batch.sample.item.processor;
|
||||
package org.springframework.batch.sample.item.writer;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.springframework.batch.sample.item.processor;
|
||||
package org.springframework.batch.sample.item.writer;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.springframework.batch.sample.item.processor;
|
||||
package org.springframework.batch.sample.item.writer;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
@@ -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;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.springframework.batch.sample.item.processor;
|
||||
package org.springframework.batch.sample.item.writer;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
Reference in New Issue
Block a user