assertEquals("123",msg.readString());
// Bytes
msg = new StreamMessageImpl();
msg.writeByte((byte)123);
msg.markAsReadOnly();
try { msg.readBytes(new byte[1]); fail("Should have failed"); } catch (MessageFormatException e) { /* OK */ }
assertEquals(123,msg.readByte());
}
public void testShortConversion() throws Exception