Decrease likelihood of contention in integration tests that misbehave since 2.1.7

This commit is contained in:
Dave Syer
2011-03-26 11:43:41 +00:00
parent 87c7671faa
commit e6ffdc3f03
2 changed files with 2 additions and 6 deletions

View File

@@ -52,8 +52,6 @@ public class FaultTolerantStepFactoryBeanIntegrationTests {
private FaultTolerantStepFactoryBean<String, String> factory;
private SkipReaderStub reader;
private SkipProcessorStub processor;
private SkipWriterStub writer;
@@ -74,7 +72,6 @@ public class FaultTolerantStepFactoryBeanIntegrationTests {
@Before
public void setUp() throws Exception {
reader = new SkipReaderStub();
writer = new SkipWriterStub(dataSource);
processor = new SkipProcessorStub(dataSource);
@@ -119,6 +116,7 @@ public class FaultTolerantStepFactoryBeanIntegrationTests {
SimpleJdbcTemplate jdbcTemplate = new SimpleJdbcTemplate(dataSource);
SkipReaderStub reader = new SkipReaderStub();
reader.clear();
reader.setItems("1", "2", "3", "4", "5");
factory.setItemReader(reader);

View File

@@ -55,8 +55,6 @@ public class FaultTolerantStepFactoryBeanRollbackIntegrationTests {
private FaultTolerantStepFactoryBean<String, String> factory;
private SkipReaderStub reader;
private SkipProcessorStub processor;
private SkipWriterStub writer;
@@ -77,7 +75,6 @@ public class FaultTolerantStepFactoryBeanRollbackIntegrationTests {
@Before
public void setUp() throws Exception {
reader = new SkipReaderStub();
writer = new SkipWriterStub(dataSource);
processor = new SkipProcessorStub(dataSource);
@@ -135,6 +132,7 @@ public class FaultTolerantStepFactoryBeanRollbackIntegrationTests {
try {
SkipReaderStub reader = new SkipReaderStub();
reader.clear();
reader.setItems("1", "2", "3", "4", "5");
factory.setItemReader(reader);