@Test public void testSerializeThenDeserialize() throws Exception { String name = "myTopic"; JmsTopic topic = new JmsTopic(name); Object roundTripped = roundTripSerialize(topic); assertNotNull("Null destination returned", roundTripped); assertEquals("Unexpected type", JmsTopic.class, roundTripped.getClass()); assertEquals("Unexpected name", name, ((JmsTopic)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(); }
JmsTopic extends JmsDestination implements Topic { @Override public String getTopicName() { return getAddress(); } }
JmsTopic extends JmsDestination implements Topic { @Override public String getTopicName() { return getAddress(); } JmsTopic();  JmsTopic(String name); }
JmsTopic extends JmsDestination implements Topic { @Override public String getTopicName() { return getAddress(); } JmsTopic();  JmsTopic(String name); @Override String getTopicName(); }
JmsTopic extends JmsDestination implements Topic { @Override public String getTopicName() { return getAddress(); } JmsTopic();  JmsTopic(String name); @Override String getTopicName();  }