@Test public void testSerializeThenDeserialize() throws Exception { String name = "myTopic"; JmsTemporaryTopic topic = new JmsTemporaryTopic(name); Object roundTripped = roundTripSerialize(topic); assertNotNull("Null destination returned", roundTripped); assertEquals("Unexpected type", JmsTemporaryTopic.class, roundTripped.getClass()); assertEquals("Unexpected name", name, ((JmsTemporaryTopic)roundTripped).getTopicName()); assertEquals("Objects were not equal", topic, roundTripped); assertEquals("Object hashCodes were not equal", topic.hashCode(), roundTripped.hashCode()); }
@Override public String getTopicName() { return getAddress(); }
JmsTemporaryTopic extends JmsTemporaryDestination implements TemporaryTopic { @Override public String getTopicName() { return getAddress(); } }
JmsTemporaryTopic extends JmsTemporaryDestination implements TemporaryTopic { @Override public String getTopicName() { return getAddress(); } JmsTemporaryTopic();  JmsTemporaryTopic(String name); }
JmsTemporaryTopic extends JmsTemporaryDestination implements TemporaryTopic { @Override public String getTopicName() { return getAddress(); } JmsTemporaryTopic();  JmsTemporaryTopic(String name); @Override void delete(); @Override String getTopicName(); }
JmsTemporaryTopic extends JmsTemporaryDestination implements TemporaryTopic { @Override public String getTopicName() { return getAddress(); } JmsTemporaryTopic();  JmsTemporaryTopic(String name); @Override void delete(); @Override String getTopicName();  }