List of usage examples for org.springframework.integration.gateway TestService requestReply
String requestReply(String input);
From source file:org.springframework.integration.config.xml.GatewayParserTests.java
@Test public void testRequestReply() { PollableChannel requestChannel = (PollableChannel) context.getBean("requestChannel"); MessageChannel replyChannel = (MessageChannel) context.getBean("replyChannel"); this.startResponder(requestChannel, replyChannel); TestService service = (TestService) context.getBean("requestReply"); String result = service.requestReply("foo"); assertEquals("foo", result); }