List of usage examples for javax.jms Queue toString
String toString();
From source file:com.adaptris.core.jms.activemq.JmsReplyToDestinationTest.java
public void testGetDestination() throws Exception { EmbeddedActiveMq activeMqBroker = new EmbeddedActiveMq(); try {/* w w w .j ava2 s. co m*/ activeMqBroker.start(); Queue tempQueue = createTempQueue(activeMqBroker); AdaptrisMessage msg = createMessage(tempQueue); JmsReplyToDestination d = new JmsReplyToDestination(); assertEquals(tempQueue.toString(), d.getDestination(msg)); } finally { activeMqBroker.destroy(); } }