@Test public void testSetPropertiesWithUnusedOptions() throws Exception { String name = "myQueue"; String unusedKey = "unusedKey"; String unusedValue = "unusedValue"; JmsQueue queue = new JmsQueue(); Map<String, String> props = new HashMap<String, String>(); props.put(NAME_PROP, name); props.put(unusedKey, unusedValue); Map<String, String> unusedProps = queue.setProperties(props); assertEquals("Unexpected value for name", name, queue.getQueueName()); 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 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();  }