From 899808e4c9e94f449444a1f4563ea10a48989d45 Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Tue, 31 Aug 2010 19:56:21 +0000 Subject: [PATCH] removing dependency on SimpleMessagingGateway from ServiceActivatorParserTests --- .../config/xml/ServiceActivatorParserTests.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spring-integration-core/src/test/java/org/springframework/integration/config/xml/ServiceActivatorParserTests.java b/spring-integration-core/src/test/java/org/springframework/integration/config/xml/ServiceActivatorParserTests.java index 517ea3ca72..9d5930dc87 100644 --- a/spring-integration-core/src/test/java/org/springframework/integration/config/xml/ServiceActivatorParserTests.java +++ b/spring-integration-core/src/test/java/org/springframework/integration/config/xml/ServiceActivatorParserTests.java @@ -23,7 +23,7 @@ import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.integration.MessageChannel; -import org.springframework.integration.gateway.SimpleMessagingGateway; +import org.springframework.integration.core.MessagingTemplate; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; @@ -92,9 +92,8 @@ public class ServiceActivatorParserTests { private Object sendAndReceive(MessageChannel channel, Object payload) { - SimpleMessagingGateway gateway = new SimpleMessagingGateway(); - gateway.setRequestChannel(channel); - return gateway.sendAndReceive(payload); + MessagingTemplate template = new MessagingTemplate(channel); + return template.convertSendAndReceive(payload); }