From 8c27ff87012abb07a827ba824b9ce99602cf0d13 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Thu, 19 Jun 2014 11:53:03 -0400 Subject: [PATCH] INT-3420 Fix Broken Test Test did not set (required) BeanFactory. --- .../amqp/config/AmqpOutboundChannelAdapterParserTests.java | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-integration-amqp/src/test/java/org/springframework/integration/amqp/config/AmqpOutboundChannelAdapterParserTests.java b/spring-integration-amqp/src/test/java/org/springframework/integration/amqp/config/AmqpOutboundChannelAdapterParserTests.java index 4dca240ce0..b21004892f 100644 --- a/spring-integration-amqp/src/test/java/org/springframework/integration/amqp/config/AmqpOutboundChannelAdapterParserTests.java +++ b/spring-integration-amqp/src/test/java/org/springframework/integration/amqp/config/AmqpOutboundChannelAdapterParserTests.java @@ -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);