RESOLVED - issue BATCH-1230: scope "step" does not work together with Annotation "@BeforeStep"
This commit is contained in:
@@ -67,7 +67,7 @@ public class StepListenerParserTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInheritListeners_NoMerge() throws Exception {
|
||||
public void testInheritListenersNoMerge() throws Exception {
|
||||
ConfigurableApplicationContext ctx = new ClassPathXmlApplicationContext(
|
||||
"org/springframework/batch/core/configuration/xml/StepListenerParserTests-context.xml");
|
||||
List<?> list = getListeners("s2", ctx);
|
||||
|
||||
@@ -241,7 +241,9 @@ public class StepListenerFactoryBeanTests {
|
||||
}
|
||||
};
|
||||
ProxyFactory factory = new ProxyFactory(delegate);
|
||||
assertTrue(StepListenerFactoryBean.isListener(factory.getProxy()));
|
||||
Object proxy = factory.getProxy();
|
||||
assertTrue(StepListenerFactoryBean.isListener(proxy));
|
||||
((StepExecutionListener) StepListenerFactoryBean.getListener(proxy)).beforeStep(null);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user