public void assertReceivedReturnedMessageWithLongExceptionMessage(Message message, AMQQueue queue)
{
JMSException exception = getReceivedException();
assertNoRouteException(exception, message);
AMQShortString exchangeName = queue.getExchangeName();
String expectedMessage = "Error: No Route for message [Exchange: " + exchangeName.asString().substring(0, 220) + "...";
assertTrue("Unexpected exception message: " + exception.getMessage(), exception.getMessage().contains(expectedMessage));
}
public void assertNoRouteExceptionWithReturnedMessage(
JMSException exception, Message message, String intendedQueueName)