Fix Test and Add Diagnostics

https://build.spring.io/browse/INT-MJATS41-608/
This commit is contained in:
Gary Russell
2016-04-22 10:10:10 -04:00
parent cfdfa62745
commit c1092e7f15
2 changed files with 19 additions and 15 deletions

View File

@@ -209,11 +209,11 @@ public class JmsOutboundGatewayTests extends LogAdjustingTestSupport {
public Message createMessage(Session session) throws JMSException {
TextMessage reply = session.createTextMessage("bar");
reply.setJMSCorrelationID(request.getJMSMessageID());
logger.debug("Sent reply: " + reply);
return reply;
}
};
template.send(replyQ, reply);
logger.debug("Sent reply: " + reply);
org.springframework.messaging.Message<?> received = queueChannel.receive(20000);
assertNotNull(received);
assertEquals("bar", received.getPayload());