IN PROGRESS - issue BATCH-7: Remove transaction synchronization and state management from input/output sources (formerly buffering)
http://jira.springframework.org/browse/BATCH-7 Remove ResourceLifecycle and make existing implementations into ItemStream
This commit is contained in:
@@ -75,7 +75,8 @@ public class RestartFunctionalTests extends AbstractBatchLauncherTests {
|
||||
}
|
||||
|
||||
int medium = jdbcTemplate.queryForInt("SELECT COUNT(*) FROM TRADE");
|
||||
System.err.println(medium);
|
||||
// assert based on commit inyerval = 2
|
||||
assertEquals(before+2, medium);
|
||||
|
||||
runJob();
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ import java.math.BigDecimal;
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import org.easymock.MockControl;
|
||||
import org.springframework.batch.item.ItemStream;
|
||||
import org.springframework.batch.item.ItemWriter;
|
||||
import org.springframework.batch.sample.domain.CustomerCredit;
|
||||
|
||||
@@ -74,7 +75,7 @@ public class FlatFileCustomerCreditWriterTests extends TestCase {
|
||||
outputControl.verify();
|
||||
}
|
||||
|
||||
private interface ResourceLifecycleItemWriter extends ItemWriter {
|
||||
private interface ResourceLifecycleItemWriter extends ItemWriter, ItemStream{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user