BATCH-1620: update step status from flow

This commit is contained in:
dsyer
2010-08-27 06:52:26 +00:00
parent 233157db8b
commit da6b67ee2e
2 changed files with 4 additions and 3 deletions

View File

@@ -23,7 +23,6 @@ import java.util.ArrayList;
import java.util.List;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.springframework.batch.core.BatchStatus;
import org.springframework.batch.core.ExitStatus;
@@ -98,8 +97,8 @@ public class FlowStepTests {
}
// BATCH-1620
@Test
@Ignore // http://forum.springsource.org/showthread.php?t=94050
public void testDoExecuteAndFail() throws Exception {
FlowStep step = new FlowStep();
@@ -122,7 +121,7 @@ public class FlowStepTests {
jobRepository.add(stepExecution);
step.execute(stepExecution);
stepExecution = getStepExecution(jobExecution, "step1`");
stepExecution = getStepExecution(jobExecution, "step1");
assertEquals(ExitStatus.COMPLETED, stepExecution.getExitStatus());
stepExecution = getStepExecution(jobExecution, "step2");
assertEquals(ExitStatus.FAILED, stepExecution.getExitStatus());