256257258259260261262263264265266
public void testEOFByte() throws Exception { try { JMSStreamMessage bm = TestMessageHelper.newJMSStreamMessage(); bm.writeByte((byte)1); bm.reset(); bm.readByte(); // should throw bm.readByte(); fail("expected exception did not occur");
497498499500501502503504505506507
} public void testByteConversions() throws Exception { JMSStreamMessage bm = TestMessageHelper.newJMSStreamMessage(); bm.writeByte((byte) 43); bm.reset(); assertEquals(43, bm.readShort()); bm.reset(); assertEquals(43, bm.readInt()); bm.reset();
257258259260261262263264265266267
498499500501502503504505506507508