RESOLVED - BATCH-434 and BATCH-438 ExitStatus cleaned up (postponed commit from friday)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user