INT-3420 Fix Broken Test

Test did not set (required) BeanFactory.
This commit is contained in:
Gary Russell
2014-06-19 11:53:03 -04:00
parent e8599c5541
commit 8c27ff8701

View File

@@ -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);