RESOLVED - issue BATCH-102: Normalization of domain object dependencies

http://opensource.atlassian.com/projects/spring/browse/BATCH-102

Removed StepExecution from StepInstance.
This commit is contained in:
dsyer
2007-10-02 18:07:40 +00:00
parent 7b1be4fc32
commit 3b1e05c6d0
2 changed files with 2 additions and 6 deletions

View File

@@ -157,7 +157,6 @@ public class SimpleStepExecutor implements StepExecutor {
Assert.notNull(step);
final Tasklet module = configuration.getTasklet();
step.setStepExecution(stepExecution);
ExitStatus status = ExitStatus.FAILED;

View File

@@ -118,7 +118,6 @@ public class DefaultStepExecutorTests extends TestCase {
SimpleJobIdentifier jobIdentifier = new SimpleJobIdentifier("FOO");
JobExecution jobExecution = new JobExecution(new JobInstance(
jobIdentifier, new Long(1)));
step.setStepExecution(new StepExecution(step, jobExecution));
StepExecution stepExecution = new StepExecution(step, jobExecution);
stepExecutor.processChunk(stepConfiguration, stepExecution);
@@ -138,7 +137,6 @@ public class DefaultStepExecutorTests extends TestCase {
SimpleJobIdentifier jobIdentifier = new SimpleJobIdentifier("FOO");
final JobExecution jobExecution = new JobExecution(new JobInstance(
jobIdentifier, new Long(3)));
step.setStepExecution(new StepExecution(step, jobExecution));
final StepExecution stepExecution = new StepExecution(step,
jobExecution);
@@ -204,8 +202,7 @@ public class DefaultStepExecutorTests extends TestCase {
try {
stepExecutor.process(stepConfiguration, stepExecution);
} catch (Exception ex) {
assertEquals(step.getStepExecution().getRollbackCount(),
new Integer(1));
assertEquals(stepExecution.getRollbackCount(), new Integer(1));
}
}
@@ -240,7 +237,7 @@ public class DefaultStepExecutorTests extends TestCase {
} catch (Exception ex) {
assertEquals(new ExitStatus(false,
ExitCodeExceptionClassifier.FATAL_EXCEPTION,
"java.lang.RuntimeException"), step.getStepExecution()
"java.lang.RuntimeException"), stepExecution
.getExitStatus());
}
}