@Test public void testSerializeThenDeserialize() throws Exception { String name = "myQueue"; JmsQueue queue = new JmsQueue(name); Object roundTripped = roundTripSerialize(queue); assertNotNull("Null destination returned", roundTripped); assertEquals("Unexpected type", JmsQueue.class, roundTripped.getClass()); assertEquals("Unexpected name", name, ((JmsQueue)roundTripped).getQueueName()); assertEquals("Objects were not equal", queue, roundTripped); assertEquals("Object hashCodes were not equal", queue.hashCode(), roundTripped.hashCode()); }
@Override public String getQueueName() { return getAddress(); }
JmsQueue extends JmsDestination implements Queue { @Override public String getQueueName() { return getAddress(); } }
JmsQueue extends JmsDestination implements Queue { @Override public String getQueueName() { return getAddress(); } JmsQueue();  JmsQueue(String name); }
JmsQueue extends JmsDestination implements Queue { @Override public String getQueueName() { return getAddress(); } JmsQueue();  JmsQueue(String name); @Override String getQueueName(); }
JmsQueue extends JmsDestination implements Queue { @Override public String getQueueName() { return getAddress(); } JmsQueue();  JmsQueue(String name); @Override String getQueueName();  }