BATCH-378: Added code to ensure that afterStep is called at the correct time.

Also removed ExitStatusExceptionClassifier in favor of using the ExitStatus of the last executed StepExecution within SimpleJob
This commit is contained in:
lucasward
2008-03-03 05:00:27 +00:00
parent 36309de0d4
commit fe9c210fa4
2 changed files with 14 additions and 0 deletions

View File

@@ -49,6 +49,11 @@ public class ExitStatus implements Serializable {
* Convenient constant value representing finished processing.
*/
public static final ExitStatus FINISHED = new ExitStatus(false, "COMPLETED");
/**
* Convenient constant value representing interrupted processing.
*/
public static final ExitStatus INTERRUPTED = new ExitStatus(false, "INTERRUPTED");
/**
* Convenient constant value representing job that did no processing (e.g.

View File

@@ -60,6 +60,15 @@ public class ExitStatusTests extends TestCase {
public void testEqualsWithSameProperties() throws Exception {
assertEquals(ExitStatus.CONTINUABLE, new ExitStatus(true, "CONTINUABLE"));
}
public void testEqualsSelf(){
ExitStatus status = new ExitStatus(true, "test");
assertEquals(status, status);
}
public void testEquals(){
assertEquals(new ExitStatus(true, "test"), new ExitStatus(true, "test"));
}
/**
* Test equality of exit statuses.