List of usage examples for org.springframework.messaging PollableChannel send
default boolean send(Message<?> message)
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); }