267268269270271272273274275276277
public void testReadIntFromByte() throws Exception { byte value = RandomUtil.randomByte(); HornetQStreamMessage message = new HornetQStreamMessage(); message.writeByte(value); message.reset(); Assert.assertEquals(value, message.readInt()); }
361362363364365366367368369370371
public void testReadLongFromByte() throws Exception { byte value = RandomUtil.randomByte(); HornetQStreamMessage message = new HornetQStreamMessage(); message.writeByte(value); message.reset(); Assert.assertEquals(value, message.readLong()); }