@Override public Byte getByteProperty(final SimpleString key) throws ActiveMQPropertyConversionException { checkProperties(); return properties.getByteProperty(key); }
@Override public byte getByte(final String name) throws JMSException { try { return map.getByteProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Override public byte getByteProperty(String name) { try { return properties.getByteProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException ce) { throw new MessageFormatRuntimeException(ce.getMessage()); } }
@Override public Byte getByteProperty(final SimpleString key) throws ActiveMQPropertyConversionException { checkProperties(); return properties.getByteProperty(key); }
@Override public Byte getByteProperty(final SimpleString key) throws ActiveMQPropertyConversionException { return getProperties().getByteProperty(key); }
@Override public Byte getByteProperty(final SimpleString key) throws ActiveMQPropertyConversionException { checkProperties(); return properties.getByteProperty(key); }
@Override public Byte getByteProperty(final SimpleString key) throws ActiveMQPropertyConversionException { checkProperties(); return properties.getByteProperty(key); }
@Override public Byte getByteProperty(final SimpleString key) throws ActiveMQPropertyConversionException { return getProperties().getByteProperty(key); }
@Override public Byte getByteProperty(final SimpleString key) throws ActiveMQPropertyConversionException { return getProperties().getByteProperty(key); }
@Override public byte getByte(final String name) throws JMSException { try { return map.getByteProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Override public byte getByte(final String name) throws JMSException { try { return map.getByteProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Override public byte getByteProperty(String name) { try { return properties.getByteProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException ce) { throw new MessageFormatRuntimeException(ce.getMessage()); } }
@Override public byte getByteProperty(String name) { try { return properties.getByteProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException ce) { throw new MessageFormatRuntimeException(ce.getMessage()); } }
@Override public byte getByte(final String name) throws JMSException { try { return map.getByteProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Override public byte getByte(final String name) throws JMSException { try { return map.getByteProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Override public byte getByteProperty(String name) { try { return properties.getByteProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException ce) { throw new MessageFormatRuntimeException(ce.getMessage()); } }
@Override public byte getByte(final String name) throws JMSException { try { return map.getByteProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Override public byte getByteProperty(String name) { try { return properties.getByteProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException ce) { throw new MessageFormatRuntimeException(ce.getMessage()); } }
@Override public byte getByte(final String name) throws JMSException { try { return map.getByteProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Test public void testByteProperty() throws Exception { Byte val = RandomUtil.randomByte(); props.putByteProperty(key, val); Assert.assertEquals(val, props.getByteProperty(key)); Assert.assertEquals(new SimpleString(Byte.toString(val)), props.getSimpleStringProperty(key)); props.putSimpleStringProperty(key, new SimpleString(Byte.toString(val))); Assert.assertEquals(val, props.getByteProperty(key)); try { props.putBooleanProperty(key, RandomUtil.randomBoolean()); props.getByteProperty(key); Assert.fail(); } catch (ActiveMQPropertyConversionException e) { } try { props.getByteProperty(unknownKey); Assert.fail(); } catch (NumberFormatException e) { } }