@Override public byte[] getBytesProperty(final SimpleString key) throws ActiveMQPropertyConversionException { checkProperties(); return properties.getBytesProperty(key); }
@Override public byte[] getBytes(final String name) throws JMSException { try { return map.getBytesProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Override public byte[] getExtraBytesProperty(SimpleString key) throws ActiveMQPropertyConversionException { if (extraProperties == null) { return null; } else { return extraProperties.getBytesProperty(key); } }
@Override public byte[] getExtraBytesProperty(SimpleString key) throws ActiveMQPropertyConversionException { if (extraProperties == null) { return null; } else { return extraProperties.getBytesProperty(key); } }
@Override public byte[] getBytesProperty(final SimpleString key) throws ActiveMQPropertyConversionException { checkProperties(); return properties.getBytesProperty(key); }
@Override public byte[] getBytesProperty(final SimpleString key) throws ActiveMQPropertyConversionException { checkProperties(); return properties.getBytesProperty(key); }
@Override public byte[] getBytesProperty(final SimpleString key) throws ActiveMQPropertyConversionException { checkProperties(); return properties.getBytesProperty(key); }
@Override public byte[] getBytesProperty(final SimpleString key) throws ActiveMQPropertyConversionException { return getProperties().getBytesProperty(key); }
@Override public byte[] getBytesProperty(final SimpleString key) throws ActiveMQPropertyConversionException { return getProperties().getBytesProperty(key); }
@Override public byte[] getBytesProperty(final SimpleString key) throws ActiveMQPropertyConversionException { return getProperties().getBytesProperty(key); }
@Override public byte[] getBytes(final String name) throws JMSException { try { return map.getBytesProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Override public byte[] getBytes(final String name) throws JMSException { try { return map.getBytesProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Override public byte[] getBytes(final String name) throws JMSException { try { return map.getBytesProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Override public byte[] getBytes(final String name) throws JMSException { try { return map.getBytesProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Override public byte[] getBytes(final String name) throws JMSException { try { return map.getBytesProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Override public byte[] getBytes(final String name) throws JMSException { try { return map.getBytesProperty(new SimpleString(name)); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Test public void testBytesProperty() throws Exception { byte[] val = RandomUtil.randomBytes(); props.putBytesProperty(key, val); Assert.assertArrayEquals(val, props.getBytesProperty(key)); try { props.putBooleanProperty(key, RandomUtil.randomBoolean()); props.getBytesProperty(key); Assert.fail(); } catch (ActiveMQPropertyConversionException e) { } Assert.assertNull(props.getBytesProperty(unknownKey)); }