From f66d1632753a95e152e79cedd5573d4ca91f5144 Mon Sep 17 00:00:00 2001 From: dsyer Date: Fri, 2 Nov 2007 15:51:31 +0000 Subject: [PATCH] IN PROGRESS - issue BATCH-159: JobExecutor should return a JobExecution (which itself contains the ExitStatus) http://opensource.atlassian.com/projects/spring/browse/BATCH-159 Fix broken test case for misconfigured launcher --- .../batch/execution/launch/SimpleJobLauncher.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/execution/src/main/java/org/springframework/batch/execution/launch/SimpleJobLauncher.java b/execution/src/main/java/org/springframework/batch/execution/launch/SimpleJobLauncher.java index 85840b8c7..afa003e41 100644 --- a/execution/src/main/java/org/springframework/batch/execution/launch/SimpleJobLauncher.java +++ b/execution/src/main/java/org/springframework/batch/execution/launch/SimpleJobLauncher.java @@ -178,6 +178,9 @@ public class SimpleJobLauncher implements JobLauncher, InitializingBean, public void afterPropertiesSet() throws Exception { if (jobExecutorFacade==null) { logger.debug("Using SimpleJobExecutorFacade"); + Assert.notNull(jobConfigurationLocator); + Assert.notNull(jobExecutor); + Assert.notNull(jobRepository); SimpleJobExecutorFacade jobExecutorFacade = new SimpleJobExecutorFacade(); jobExecutorFacade.setJobConfigurationLocator(jobConfigurationLocator); jobExecutorFacade.setJobExecutionListeners(listeners);