@Override public Long getLongProperty(final SimpleString key) throws ActiveMQPropertyConversionException { checkProperties(); return properties.getLongProperty(key); }
@Override public long getLongProperty(String name) { try { return properties.getLongProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException ce) { throw new MessageFormatRuntimeException(ce.getMessage()); } }
@Override public long getLong(final String name) throws JMSException { try { return map.getLongProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Override public Long getLongProperty(final SimpleString key) throws ActiveMQPropertyConversionException { checkProperties(); return properties.getLongProperty(key); }
@Override public Long getLongProperty(final SimpleString key) throws ActiveMQPropertyConversionException { checkProperties(); return properties.getLongProperty(key); }
@Override public Long getLongProperty(final SimpleString key) throws ActiveMQPropertyConversionException { checkProperties(); return properties.getLongProperty(key); }
@Override public Long getLongProperty(final SimpleString key) throws ActiveMQPropertyConversionException { return getProperties().getLongProperty(key); }
@Override public Long getLongProperty(final SimpleString key) throws ActiveMQPropertyConversionException { return getProperties().getLongProperty(key); }
@Override public Long getLongProperty(final SimpleString key) throws ActiveMQPropertyConversionException { return getProperties().getLongProperty(key); }
@Override public long getLong(final String name) throws JMSException { try { return map.getLongProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Override public long getLong(final String name) throws JMSException { try { return map.getLongProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Override public long getLongProperty(String name) { try { return properties.getLongProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException ce) { throw new MessageFormatRuntimeException(ce.getMessage()); } }
@Override public long getLongProperty(String name) { try { return properties.getLongProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException ce) { throw new MessageFormatRuntimeException(ce.getMessage()); } }
@Override public long getLong(final String name) throws JMSException { try { return map.getLongProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Override public long getLong(final String name) throws JMSException { try { return map.getLongProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Override public long getLongProperty(String name) { try { return properties.getLongProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException ce) { throw new MessageFormatRuntimeException(ce.getMessage()); } }
@Override public long getLong(final String name) throws JMSException { try { return map.getLongProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Override public long getLongProperty(String name) { try { return properties.getLongProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException ce) { throw new MessageFormatRuntimeException(ce.getMessage()); } }
@Override public long getLong(final String name) throws JMSException { try { return map.getLongProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Test public void testTypedProperties() throws Exception { SimpleString longKey = RandomUtil.randomSimpleString(); long longValue = RandomUtil.randomLong(); SimpleString simpleStringKey = RandomUtil.randomSimpleString(); SimpleString simpleStringValue = RandomUtil.randomSimpleString(); TypedProperties otherProps = new TypedProperties(); otherProps.putLongProperty(longKey, longValue); otherProps.putSimpleStringProperty(simpleStringKey, simpleStringValue); props.putTypedProperties(otherProps); long ll = props.getLongProperty(longKey); Assert.assertEquals(longValue, ll); SimpleString ss = props.getSimpleStringProperty(simpleStringKey); Assert.assertEquals(simpleStringValue, ss); }