INT-3420 Fix Broken Test
Test did not set (required) BeanFactory.
This commit is contained in:
@@ -359,6 +359,7 @@ public class AmqpOutboundChannelAdapterParserTests {
|
||||
new DirectFieldAccessor(handler).setPropertyValue("logger", logger);
|
||||
ApplicationContext context = mock(ApplicationContext.class);
|
||||
handler.setApplicationContext(context);
|
||||
handler.setBeanFactory(context);
|
||||
handler.afterPropertiesSet();
|
||||
ContextRefreshedEvent event = new ContextRefreshedEvent(context);
|
||||
handler.onApplicationEvent(event);
|
||||
|
||||
Reference in New Issue
Block a user