388389390391392393394395396397398
public void testEOFFloat() throws Exception { try { JMSBytesMessage bm = TestMessageHelper.newJMSBytesMessage(); bm.writeFloat(1.3f); bm.reset(); bm.readFloat(); // should throw bm.readFloat(); fail("expected exception did not occur");
158159160161162163164165166167168
@Test(expected=MessageEOFException.class) public void testEOFFloat() throws Exception { JMSBytesMessage bm = TestMessageHelper.newJMSBytesMessage(); bm.writeFloat(1.3f); bm.reset(); bm.readFloat(); // should throw bm.readFloat(); }
387388389390391392393394395396397