Add additional test for step scope

This commit is contained in:
dsyer
2009-11-18 07:46:08 +00:00
parent fcf7b1d1c4
commit eb3fd63133
2 changed files with 19 additions and 0 deletions

View File

@@ -95,6 +95,24 @@ public class StepScopePlaceholderIntegrationTests implements BeanFactoryAware {
assertEquals("bar-bar", compound.getName());
}
@Test
public void testCompoundPropertyTwice() throws Exception {
assertEquals("bar-bar", compound.getName());
StepSynchronizationManager.close();
stepExecution = new StepExecution("foo", new JobExecution(11L), 123L);
ExecutionContext executionContext = new ExecutionContext();
executionContext.put("foo", "spam");
stepExecution.setExecutionContext(executionContext);
StepSynchronizationManager.register(stepExecution);
assertEquals("spam-bar", compound.getName());
}
@Test
public void testParentByRef() throws Exception {
assertEquals("bar", ref.getParent().getName());