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

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

Introduction

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

Prototype

String solicitResponse();

Source Link

Usage

From source file:org.springframework.integration.config.xml.GatewayParserTests.java

@Test
public void testSolicitResponse() {
    PollableChannel channel = (PollableChannel) context.getBean("replyChannel");
    channel.send(new GenericMessage<String>("foo"));
    TestService service = (TestService) context.getBean("solicitResponse");
    String result = service.solicitResponse();
    assertEquals("foo", result);
}