IN PROGRESS - BATCH-571: Remove reference to Step from StepExecution
step reference replaced with stepName string
This commit is contained in:
@@ -7,7 +7,6 @@ import org.springframework.batch.core.StepExecution;
|
||||
import org.springframework.batch.item.ExecutionContext;
|
||||
import org.springframework.batch.sample.item.writer.StagingItemWriter;
|
||||
import org.springframework.batch.sample.tasklet.JobSupport;
|
||||
import org.springframework.batch.sample.tasklet.StepSupport;
|
||||
import org.springframework.test.AbstractTransactionalDataSourceSpringContextTests;
|
||||
import org.springframework.util.ClassUtils;
|
||||
|
||||
@@ -32,12 +31,13 @@ public class StagingItemReaderTests extends AbstractTransactionalDataSourceSprin
|
||||
"staging-test-context.xml") };
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.springframework.test.AbstractTransactionalSpringContextTests#onSetUpBeforeTransaction()
|
||||
*/
|
||||
protected void onSetUpBeforeTransaction() throws Exception {
|
||||
StepExecution stepExecution = new StepExecution(new StepSupport("stepName"),
|
||||
new JobExecution(new JobInstance(jobId, new JobParameters(), new JobSupport("testJob"))));
|
||||
StepExecution stepExecution = new StepExecution("stepName", new JobExecution(new JobInstance(jobId,
|
||||
new JobParameters(), new JobSupport("testJob"))));
|
||||
reader.beforeStep(stepExecution);
|
||||
writer.beforeStep(stepExecution);
|
||||
}
|
||||
|
||||
@@ -20,7 +20,6 @@ import org.springframework.batch.core.JobInstance;
|
||||
import org.springframework.batch.core.JobParameters;
|
||||
import org.springframework.batch.core.StepExecution;
|
||||
import org.springframework.batch.sample.tasklet.JobSupport;
|
||||
import org.springframework.batch.sample.tasklet.StepSupport;
|
||||
import org.springframework.test.AbstractTransactionalDataSourceSpringContextTests;
|
||||
import org.springframework.util.ClassUtils;
|
||||
|
||||
@@ -37,12 +36,13 @@ public class StagingItemWriterTests extends AbstractTransactionalDataSourceSprin
|
||||
"staging-test-context.xml") };
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.springframework.test.AbstractTransactionalSpringContextTests#onSetUpBeforeTransaction()
|
||||
*/
|
||||
protected void onSetUpBeforeTransaction() throws Exception {
|
||||
StepExecution stepExecution = new StepExecution(new StepSupport("stepName"),
|
||||
new JobExecution(new JobInstance(new Long(12L), new JobParameters(), new JobSupport("testJob"))));
|
||||
StepExecution stepExecution = new StepExecution("stepName", new JobExecution(new JobInstance(new Long(12L),
|
||||
new JobParameters(), new JobSupport("testJob"))));
|
||||
writer.beforeStep(stepExecution);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user