IN PROGRESS - BATCH-825: Modify JobLauncher contract to not throw exception on job failure.

removed onErrorInJob
This commit is contained in:
robokaso
2008-10-03 13:40:37 +00:00
parent 1965fc9ebb
commit bc7d12e1a3
5 changed files with 5 additions and 35 deletions

View File

@@ -240,8 +240,8 @@ public class SimpleJobTests extends TestCase {
public void testFailedWithListener() throws Exception {
job.setJobExecutionListeners(new JobExecutionListenerSupport[] { new JobExecutionListenerSupport() {
public void onError(JobExecution jobExecution, Throwable t) {
list.add(t);
public void afterJob(JobExecution jobExecution) {
list.add("afterJob");
}
} });
final RuntimeException exception = new RuntimeException("Foo!");