Hopefully fix FieldSet changes (uncommitted) and add also some work in progress on JobLauncher interface change

This commit is contained in:
dsyer
2008-01-17 13:01:03 +00:00
parent ce9ff5d25e
commit 72167a78c6
27 changed files with 736 additions and 407 deletions

View File

@@ -20,6 +20,7 @@ import java.util.ArrayList;
import java.util.List;
import org.springframework.batch.core.executor.StepInterruptedException;
import org.springframework.batch.core.runtime.SimpleJobIdentifier;
/**
* Functional test for graceful shutdown. A batch container is started in a new thread,
@@ -40,7 +41,7 @@ public class GracefulShutdownFunctionalTest extends AbstractBatchLauncherTests {
Thread jobThread = new Thread(){
public void run(){
try {
launcher.run(getJobName());
launcher.run(new SimpleJobIdentifier(getJobName()));
}
catch (RuntimeException e) {
if (!(e.getCause() instanceof StepInterruptedException)) {

View File

@@ -16,6 +16,7 @@
package org.springframework.batch.sample;
import org.springframework.batch.core.runtime.SimpleJobIdentifier;
import org.springframework.batch.io.exception.BatchCriticalException;
import org.springframework.jdbc.core.JdbcOperations;
@@ -81,7 +82,7 @@ public class RestartFunctionalTests extends AbstractBatchLauncherTests {
// load the application context and launch the job
private void runJob() throws Exception, Exception {
launcher.run(getJobName());
launcher.run(new SimpleJobIdentifier(getJobName()));
}
}