RESOLVED - issue BATCH-581: Add filter capability to item oriented paradigm

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

Modified the customerFilterJob to use the ResourceLineReader and processors.
This commit is contained in:
lucasward
2008-10-04 02:35:38 +00:00
parent 56a12d0e77
commit 63f437528c
5 changed files with 49 additions and 48 deletions

View File

@@ -7,6 +7,8 @@ import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import org.springframework.batch.core.JobExecution;
import org.springframework.batch.core.StepExecution;
import org.springframework.batch.item.file.mapping.DefaultFieldSet;
import org.springframework.batch.item.file.mapping.FieldSet;
import org.springframework.batch.item.file.transform.LineTokenizer;
@@ -32,15 +34,6 @@ public class CompositeCustomerUpdateLineTokenizerTests {
compositeTokenizer.setFooterTokenizer(footerTokenizer);
}
@Test
public void testFooter() throws Exception{
String footerLine = "Ffjkdalsfjdaskl;f";
FieldSet fs = compositeTokenizer.process(footerLine);
assertEquals(footerFieldSet, fs);
assertEquals(footerLine, footerTokenizer.getTokenizedLine());
}
@Test
public void testCustomerAdd() throws Exception{