Example usage for org.springframework.integration.gateway TestService requestReply

List of usage examples for org.springframework.integration.gateway TestService requestReply

Introduction

In this page you can find the example usage for org.springframework.integration.gateway TestService requestReply.

Prototype

String requestReply(String input);

Source Link

Usage

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