INT-3145: Fix compatibility with SPR 4.0

JIRA: https://jira.springsource.org/browse/INT-3145
This commit is contained in:
Artem Bilan
2013-09-20 14:07:54 +03:00
parent f96e5ee00b
commit 347c3f03e5

View File

@@ -128,6 +128,8 @@ public class ExpressionEvaluatingMessageProcessorTests {
factoryBean.setApplicationContext(applicationContext);
applicationContext.getBeanFactory().registerSingleton(IntegrationContextUtils.INTEGRATION_EVALUATION_CONTEXT_BEAN_NAME,
factoryBean.getObject());
applicationContext.refresh();
processor.afterPropertiesSet();
EvaluationContext evaluationContext = TestUtils.getPropertyValue(processor, "evaluationContext", EvaluationContext.class);
evaluationContext.setVariable("target", new TestTarget());