RESOLVED - BATCH-434 and BATCH-438 ExitStatus cleaned up (postponed commit from friday)

This commit is contained in:
robokaso
2008-03-08 20:40:19 +00:00
parent 43d17d9ef5
commit ed6f991a76
3 changed files with 2 additions and 18 deletions

View File

@@ -234,7 +234,7 @@ public class SimpleJobTests extends TestCase {
assertEquals(exception, e.getCause());
}
assertEquals(0, list.size());
checkRepository(BatchStatus.STOPPED, ExitStatus.INTERRUPTED);
checkRepository(BatchStatus.STOPPED, ExitStatus.FAILED);
}
public void testFailed() throws Exception {
@@ -355,7 +355,7 @@ public class SimpleJobTests extends TestCase {
throw (RuntimeException) exception;
}
if (exception instanceof JobInterruptedException) {
stepExecution.setExitStatus(ExitStatus.INTERRUPTED);
stepExecution.setExitStatus(ExitStatus.FAILED);
throw (JobInterruptedException) exception;
}
if (runnable != null) {