BATCH-1412: Implementing non-identifying job parameters

This commit is contained in:
Michael Minella
2013-02-04 14:38:56 -06:00
committed by Dave Syer
parent 3601c84164
commit 557515df45
101 changed files with 1375 additions and 1117 deletions

View File

@@ -52,7 +52,7 @@ public class StagingItemReaderTests {
@BeforeTransaction
public void onSetUpBeforeTransaction() throws Exception {
StepExecution stepExecution = new StepExecution("stepName", new JobExecution(new JobInstance(jobId,
new JobParameters(), "testJob")));
"testJob"), new JobParameters()));
writer.beforeStep(stepExecution);
writer.write(Arrays.asList(new String[] { "FOO", "BAR", "SPAM", "BUCKET" }));
reader.beforeStep(stepExecution);
@@ -61,7 +61,7 @@ public class StagingItemReaderTests {
@AfterTransaction
public void onTearDownAfterTransaction() throws Exception {
reader.destroy();
jdbcTemplate.update("DELETE FROM BATCH_STAGING");
jdbcTemplate.update("DELETE FROM BATCH_STAGING");
}
@Transactional

View File

@@ -52,7 +52,7 @@ public class StagingItemWriterTests {
@Before
public void onSetUpBeforeTransaction() throws Exception {
StepExecution stepExecution = new StepExecution("stepName", new JobExecution(new JobInstance(12L,
new JobParameters(), "testJob")));
"testJob"), new JobParameters()));
writer.beforeStep(stepExecution);
}