...but only if a step execution dao is provided
This commit is contained in:
@@ -145,8 +145,11 @@ public abstract class AbstractJobExecutionDaoTests extends AbstractTransactional
|
||||
exec.createStepExecution(new StepSupport("foo"));
|
||||
|
||||
dao.saveJobExecution(exec);
|
||||
for (StepExecution stepExecution : exec.getStepExecutions()) {
|
||||
getStepExecutionDao().saveStepExecution(stepExecution);
|
||||
StepExecutionDao stepExecutionDao = getStepExecutionDao();
|
||||
if (stepExecutionDao != null) {
|
||||
for (StepExecution stepExecution : exec.getStepExecutions()) {
|
||||
stepExecutionDao.saveStepExecution(stepExecution);
|
||||
}
|
||||
}
|
||||
JobExecution value = dao.getJobExecution(exec.getId());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user