Example usage for javax.jms Queue toString

List of usage examples for javax.jms Queue toString

Introduction

In this page you can find the example usage for javax.jms Queue toString.

Prototype


String toString();

Source Link

Document

Returns a string representation of this object.

Usage

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();
    }
}