Package org.activemq.message

Examples of org.activemq.message.ActiveMQStreamMessage.readShort()


      byte test = (byte)4;
      msg.writeByte(test);
      msg.reset();
      assertTrue(msg.readByte()==test);
      msg.reset();
      assertTrue(msg.readShort()==test);
      msg.reset();
      assertTrue(msg.readInt()==test);
      msg.reset();
      assertTrue(msg.readLong()==test);
      msg.reset();
View Full Code Here


    ActiveMQStreamMessage msg = new ActiveMQStreamMessage();
    try {
      short test = (short)4;
      msg.writeShort(test);
      msg.reset();
      assertTrue(msg.readShort()==test);
      msg.reset();
      assertTrue(msg.readInt()==test);
      msg.reset();
      assertTrue(msg.readLong()==test);
      msg.reset();
View Full Code Here

      assertTrue(msg.readByte()==testByte);
      msg.clearBody();
      short testShort = 3;
      msg.writeString(new Short(testShort).toString());
      msg.reset();
      assertTrue(msg.readShort()==testShort);
      msg.clearBody();
      int testInt = 4;
      msg.writeString(new Integer(testInt).toString());
      msg.reset();
      assertTrue(msg.readInt()==testInt);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.