From 2952ed5233a1287aaf0d323c4f24ba1b2a7ddb4e Mon Sep 17 00:00:00 2001 From: dsyer Date: Wed, 11 Nov 2009 22:03:02 +0000 Subject: [PATCH] RESOLVED - issue BATCH-1411: Allow a Job to specify its required JobParameters Fix build --- .../main/java/org/springframework/batch/test/StepRunner.java | 4 ++++ 1 file changed, 4 insertions(+) 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); + } } /**