Package org.activemq.message

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


  public void testreadByte()
  {
    ActiveMQStreamMessage msg = new ActiveMQStreamMessage();
    try {
      byte test = (byte)4;
      msg.writeByte(test);
      msg.reset();
      assertTrue(msg.readByte()==test);
      msg.reset();
      assertTrue(msg.readShort()==test);
      msg.reset();
View Full Code Here


  public void testReadObject()
  {
    ActiveMQStreamMessage msg = new ActiveMQStreamMessage();
    try {
      byte testByte = (byte)2;
      msg.writeByte(testByte);
      msg.reset();
      assertTrue(((Byte)msg.readObject()).byteValue()==testByte);
      msg.clearBody();
     
      short testShort = 3;
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.