6869707172737475767778
public void testReadBoolean() { ActiveMQStreamMessage msg = new ActiveMQStreamMessage(); try { msg.writeBoolean(true); msg.reset(); assertTrue(msg.readBoolean()); msg.reset(); assertTrue(msg.readString().equals("true")); msg.reset(); try {
7071727374757677787980
ActiveMQStreamMessage msg = new ActiveMQStreamMessage(); try { msg.writeBoolean(true); msg.reset(); assertTrue(msg.readBoolean()); msg.reset(); assertTrue(msg.readString().equals("true")); msg.reset(); try { msg.readByte(); fail("Should have thrown exception");
7273747576777879808182
msg.writeBoolean(true); msg.reset(); assertTrue(msg.readBoolean()); msg.reset(); assertTrue(msg.readString().equals("true")); msg.reset(); try { msg.readByte(); fail("Should have thrown exception"); } catch (MessageFormatException mfe) { }
7879808182838485868788
try { msg.readByte(); fail("Should have thrown exception"); } catch (MessageFormatException mfe) { } msg.reset(); try { msg.readShort(); fail("Should have thrown exception"); } catch (MessageFormatException mfe) { }
8485868788899091929394
try { msg.readShort(); fail("Should have thrown exception"); } catch (MessageFormatException mfe) { } msg.reset(); try { msg.readInt(); fail("Should have thrown exception"); } catch (MessageFormatException mfe) { }
90919293949596979899100
try { msg.readInt(); fail("Should have thrown exception"); } catch (MessageFormatException mfe) { } msg.reset(); try { msg.readLong(); fail("Should have thrown exception"); } catch (MessageFormatException mfe) { }
96979899100101102103104105106
try { msg.readLong(); fail("Should have thrown exception"); } catch (MessageFormatException mfe) { } msg.reset(); try { msg.readFloat(); fail("Should have thrown exception"); } catch (MessageFormatException mfe) { }
102103104105106107108109110111112
try { msg.readFloat(); fail("Should have thrown exception"); } catch (MessageFormatException mfe) { } msg.reset(); try { msg.readDouble(); fail("Should have thrown exception"); } catch (MessageFormatException mfe) { }
108109110111112113114115116117118
try { msg.readDouble(); fail("Should have thrown exception"); } catch (MessageFormatException mfe) { } msg.reset(); try { msg.readChar(); fail("Should have thrown exception"); } catch (MessageFormatException mfe) { }
114115116117118119120121122123124
try { msg.readChar(); fail("Should have thrown exception"); } catch (MessageFormatException mfe) { } msg.reset(); try { msg.readBytes(new byte[1]); fail("Should have thrown exception"); } catch (MessageFormatException mfe) { }