OPEN - issue BATCH-303: Replace repeat contexts in core domain with boolean flag that can be checked by executors
http://jira.springframework.org/browse/BATCH-303
This commit is contained in:
@@ -91,8 +91,7 @@ public class DefaultJobExecutor implements JobExecutor {
|
||||
updateStatus(execution, BatchStatus.STARTED);
|
||||
StepExecutor stepExecutor = stepExecutorFactory
|
||||
.getExecutor(step);
|
||||
StepExecution stepExecution = new StepExecution(stepInstance,
|
||||
execution);
|
||||
StepExecution stepExecution = execution.createStepExecution(stepInstance);
|
||||
status = stepExecutor.process(step,
|
||||
stepExecution);
|
||||
}
|
||||
|
||||
@@ -67,16 +67,16 @@ public class GracefulShutdownFunctionalTest extends AbstractBatchLauncherTests {
|
||||
launcher.stop();
|
||||
|
||||
//it takes a little while for it to shut down.
|
||||
// Thread.sleep(1000);
|
||||
//
|
||||
// assertFalse(launcher.isRunning());
|
||||
// assertFalse(jobThread.isAlive());
|
||||
//
|
||||
// if (!errors.isEmpty()) {
|
||||
// Exception e = (Exception) errors.get(0);
|
||||
// e.printStackTrace();
|
||||
// fail("Unexpected Exception: "+e);
|
||||
// }
|
||||
Thread.sleep(1000);
|
||||
|
||||
assertFalse(launcher.isRunning());
|
||||
assertFalse(jobThread.isAlive());
|
||||
|
||||
if (!errors.isEmpty()) {
|
||||
Exception e = (Exception) errors.get(0);
|
||||
e.printStackTrace();
|
||||
fail("Unexpected Exception: "+e);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user