From 72b371463bcdc16cc107f388e1a2a8a0a06b5823 Mon Sep 17 00:00:00 2001 From: dsyer Date: Thu, 6 Aug 2009 13:12:50 +0000 Subject: [PATCH] Add convenience factory impl of JobRepository.createJobExecution() for testing --- .../springframework/batch/core/step/JobRepositorySupport.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)