@Test public void testSetPropertiesWithUnusedOptions() throws Exception { String name = "myTopic"; String unusedKey = "unusedKey"; String unusedValue = "unusedValue"; JmsTemporaryTopic topic = new JmsTemporaryTopic(); Map<String, String> props = new HashMap<String, String>(); props.put(NAME_PROP, name); props.put(unusedKey, unusedValue); Map<String, String> unusedProps = topic.setProperties(props); assertEquals("Unexpected value for name", name, topic.getTopicName()); assertEquals("Unexpected size of return map", 1, unusedProps.size()); assertTrue("Expected property not found in map: " + unusedProps, unusedProps.containsKey(unusedKey)); assertEquals("Unexpected property value", unusedValue, unusedProps.get(unusedKey)); try { unusedProps.put("a", "b"); fail("Map should be unmodifiable"); } catch (UnsupportedOperationException uoe) { } }
@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();  }