IN PROGRESS - issue BATCH-7: Remove transaction synchronization and state management from input/output sources (formerly buffering)

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

Added ItemStream as base interface for ItemReader/Writer.
This commit is contained in:
dsyer
2008-01-30 18:42:48 +00:00
parent 11708012b5
commit bebab9c8d2
42 changed files with 340 additions and 235 deletions

View File

@@ -2,12 +2,11 @@ package org.springframework.batch.sample.dao;
import java.math.BigDecimal;
import org.springframework.batch.item.ItemWriter;
import org.springframework.batch.item.ResourceLifecycle;
import org.springframework.batch.sample.domain.CustomerCredit;
import junit.framework.TestCase;
import org.easymock.MockControl;
import junit.framework.TestCase;
import org.springframework.batch.item.ItemWriter;
import org.springframework.batch.sample.domain.CustomerCredit;
public class FlatFileCustomerCreditWriterTests extends TestCase {
@@ -27,7 +26,7 @@ public class FlatFileCustomerCreditWriterTests extends TestCase {
writer.setOutputSource(output);
}
public void testOpen() {
public void testOpen() throws Exception {
//set-up outputSource mock
output.open();
@@ -75,7 +74,7 @@ public class FlatFileCustomerCreditWriterTests extends TestCase {
outputControl.verify();
}
private interface ResourceLifecycleItemWriter extends ItemWriter, ResourceLifecycle {
private interface ResourceLifecycleItemWriter extends ItemWriter {
}
}