Need to sav step executions before asserting about them

This commit is contained in:
dsyer
2008-08-13 12:18:20 +00:00
parent 1077405691
commit e7d7802492

View File

@@ -145,6 +145,9 @@ public abstract class AbstractJobExecutionDaoTests extends AbstractTransactional
exec.createStepExecution(new StepSupport("foo"));
dao.saveJobExecution(exec);
for (StepExecution stepExecution : exec.getStepExecutions()) {
getStepExecutionDao().saveStepExecution(stepExecution);
}
JobExecution value = dao.getJobExecution(exec.getId());
assertEquals(exec, value);