Permalink
Browse files

Decrease likelihood of contention in integration tests that misbehave…

… since 2.1.7
  • Loading branch information...
dsyer committed Mar 26, 2011
1 parent 87c7671 commit e6ffdc3f03f34b0598f5f7f9deaf86a39c861e8c
@@ -52,8 +52,6 @@
private FaultTolerantStepFactoryBean<String, String> factory;
- private SkipReaderStub reader;
-
private SkipProcessorStub processor;
private SkipWriterStub writer;
@@ -74,7 +72,6 @@
@Before
public void setUp() throws Exception {
- reader = new SkipReaderStub();
writer = new SkipWriterStub(dataSource);
processor = new SkipProcessorStub(dataSource);
@@ -119,6 +116,7 @@ public void testMultithreadedSunnyDay() throws Throwable {
SimpleJdbcTemplate jdbcTemplate = new SimpleJdbcTemplate(dataSource);
+ SkipReaderStub reader = new SkipReaderStub();
reader.clear();
reader.setItems("1", "2", "3", "4", "5");
factory.setItemReader(reader);
@@ -55,8 +55,6 @@
private FaultTolerantStepFactoryBean<String, String> factory;
- private SkipReaderStub reader;
-
private SkipProcessorStub processor;
private SkipWriterStub writer;
@@ -77,7 +75,6 @@
@Before
public void setUp() throws Exception {
- reader = new SkipReaderStub();
writer = new SkipWriterStub(dataSource);
processor = new SkipProcessorStub(dataSource);
@@ -135,6 +132,7 @@ public void testMultithreadedSkipInWriter() throws Throwable {
try {
+ SkipReaderStub reader = new SkipReaderStub();
reader.clear();
reader.setItems("1", "2", "3", "4", "5");
factory.setItemReader(reader);

0 comments on commit e6ffdc3

Please sign in to comment.