diff --git a/spring-batch-test/src/main/java/org/springframework/batch/test/StepRunner.java b/spring-batch-test/src/main/java/org/springframework/batch/test/StepRunner.java index 47ee22b28..f4364e60b 100755 --- a/spring-batch-test/src/main/java/org/springframework/batch/test/StepRunner.java +++ b/spring-batch-test/src/main/java/org/springframework/batch/test/StepRunner.java @@ -29,6 +29,7 @@ import org.springframework.batch.core.JobExecution; import org.springframework.batch.core.JobExecutionListener; import org.springframework.batch.core.JobParameter; import org.springframework.batch.core.JobParameters; +import org.springframework.batch.core.JobParametersInvalidException; import org.springframework.batch.core.Step; import org.springframework.batch.core.job.SimpleJob; import org.springframework.batch.core.launch.JobLauncher; @@ -175,6 +176,9 @@ public class StepRunner { catch (JobInstanceAlreadyCompleteException e) { throw new RuntimeException(e); } + catch (JobParametersInvalidException e) { + throw new RuntimeException(e); + } } /**