432433434435436437438439440441442
public void testEOFLong() throws Exception { try { JMSBytesMessage bm = TestMessageHelper.newJMSBytesMessage(); bm.writeLong(4L); bm.reset(); bm.readLong(); // should throw bm.readLong(); fail("expected exception did not occur");
180181182183184185186187188189190
@Test(expected=MessageEOFException.class) public void testEOFLong() throws Exception { JMSBytesMessage bm = TestMessageHelper.newJMSBytesMessage(); bm.writeLong(4L); bm.reset(); bm.readLong(); // should throw bm.readLong(); }
431432433434435436437438439440441