366367368369370371372373374375376
public void testEOFDouble() throws Exception { try { JMSBytesMessage bm = TestMessageHelper.newJMSBytesMessage(); bm.writeDouble(1.3d); bm.reset(); bm.readDouble(); // should throw bm.readDouble(); fail("expected exception did not occur");
147148149150151152153154155156157
@Test(expected=MessageEOFException.class) public void testEOFDouble() throws Exception { JMSBytesMessage bm = TestMessageHelper.newJMSBytesMessage(); bm.writeDouble(1.3d); bm.reset(); bm.readDouble(); // should throw bm.readDouble(); }
365366367368369370371372373374375