RESOLVED - BATCH-1184: DelegatingStep is not used. It should be removed.

This commit is contained in:
dhgarrette
2009-03-30 17:06:34 +00:00
parent f8144a68aa
commit 6358cb2bf2
2 changed files with 0 additions and 74 deletions

View File

@@ -184,9 +184,6 @@ public class StepParserTests {
Map<String, Object> beans = ctx.getBeansOfType(Step.class);
assertTrue(beans.containsKey(stepName));
Step step = (Step) ctx.getBean(stepName);
if (step instanceof DelegatingStep) {
step = (Step) ReflectionTestUtils.getField(step, "delegate");
}
assertTrue(step instanceof TaskletStep);
Object compositeListener = ReflectionTestUtils.getField(step, "stepExecutionListener");
Object composite = ReflectionTestUtils.getField(compositeListener, "list");
@@ -206,9 +203,6 @@ public class StepParserTests {
Map<String, Object> beans = ctx.getBeansOfType(Step.class);
assertTrue(beans.containsKey(stepName));
Step step = (Step) ctx.getBean(stepName);
if (step instanceof DelegatingStep) {
step = (Step) ReflectionTestUtils.getField(step, "delegate");
}
assertTrue(step instanceof TaskletStep);
Object transactionAttribute = ReflectionTestUtils.getField(step, "transactionAttribute");
DefaultTransactionAttribute txa = (DefaultTransactionAttribute) transactionAttribute;