diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/step/JobRepositorySupport.java b/spring-batch-core/src/test/java/org/springframework/batch/core/step/JobRepositorySupport.java index 7387950fb..5fccc9f81 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/step/JobRepositorySupport.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/step/JobRepositorySupport.java @@ -31,7 +31,8 @@ public class JobRepositorySupport implements JobRepository { * @see org.springframework.batch.container.common.repository.JobRepository#findOrCreateJob(org.springframework.batch.container.common.domain.JobConfiguration) */ public JobExecution createJobExecution(String jobName, JobParameters jobParameters) { - return null; + JobInstance jobInstance = new JobInstance(0L, jobParameters, jobName); + return new JobExecution(jobInstance, 11L); } /* (non-Javadoc)