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