removing dependency on SimpleMessagingGateway from ServiceActivatorParserTests

This commit is contained in:
Mark Fisher
2010-08-31 19:56:21 +00:00
parent aaf75243e9
commit 899808e4c9

View File

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