Package org.codehaus.activemq.message

Examples of org.codehaus.activemq.message.ActiveMQStreamMessage.clearBody()


     
      float testFloat = 6.6f;
      msg.writeFloat(testFloat);
      msg.reset();
      assertTrue(((Float)msg.readObject()).floatValue()==testFloat);
      msg.clearBody();
     
      double testDouble = 7.7d;
      msg.writeDouble(testDouble);
      msg.reset();
      assertTrue(((Double)msg.readObject()).doubleValue()==testDouble);
View Full Code Here


     
      double testDouble = 7.7d;
      msg.writeDouble(testDouble);
      msg.reset();
      assertTrue(((Double)msg.readObject()).doubleValue()==testDouble);
      msg.clearBody();
     
      char testChar = 'z';
      msg.writeChar(testChar);
      msg.reset();
      assertTrue(((Character)msg.readObject()).charValue()==testChar);
View Full Code Here

     
      char testChar = 'z';
      msg.writeChar(testChar);
      msg.reset();
      assertTrue(((Character)msg.readObject()).charValue()==testChar);
      msg.clearBody();
     
      byte[] data = new byte[50];
      for(int i = 0; i < data.length;i++){
        data[i] = (byte)i;
      }
View Full Code Here

      byte[] valid = (byte[])msg.readObject();
      assertTrue(valid.length==data.length);
      for(int i =0; i < valid.length;i++){
        assertTrue(valid[i]==data[i]);
      }
      msg.clearBody();
      msg.writeBoolean(true);
      msg.reset();
      assertTrue(((Boolean)msg.readObject()).booleanValue());
     
     
View Full Code Here

    try {
      byte testByte = (byte)2;
      msg.writeString(new Byte(testByte).toString());
      msg.reset();
      assertTrue(msg.readByte()==testByte);
      msg.clearBody();
      short testShort = 3;
      msg.writeString(new Short(testShort).toString());
      msg.reset();
      assertTrue(msg.readShort()==testShort);
      msg.clearBody();
View Full Code Here

      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);
      msg.clearBody();
View Full Code Here

      msg.clearBody();
      int testInt = 4;
      msg.writeString(new Integer(testInt).toString());
      msg.reset();
      assertTrue(msg.readInt()==testInt);
      msg.clearBody();
      long testLong = 6l;
      msg.writeString(new Long(testLong).toString());
      msg.reset();
      assertTrue(msg.readLong()==testLong);
      msg.clearBody();
View Full Code Here

      msg.clearBody();
      long testLong = 6l;
      msg.writeString(new Long(testLong).toString());
      msg.reset();
      assertTrue(msg.readLong()==testLong);
      msg.clearBody();
      float testFloat = 6.6f;
      msg.writeString(new Float(testFloat).toString());
      msg.reset();
      assertTrue(msg.readFloat()==testFloat);
      msg.clearBody();
View Full Code Here

      msg.clearBody();
      float testFloat = 6.6f;
      msg.writeString(new Float(testFloat).toString());
      msg.reset();
      assertTrue(msg.readFloat()==testFloat);
      msg.clearBody();
      double testDouble = 7.7d;
      msg.writeString(new Double(testDouble).toString());
      msg.reset();
      assertTrue(msg.readDouble()==testDouble);
      msg.clearBody();
View Full Code Here

      msg.clearBody();
      double testDouble = 7.7d;
      msg.writeString(new Double(testDouble).toString());
      msg.reset();
      assertTrue(msg.readDouble()==testDouble);
      msg.clearBody();
      msg.writeString("true");
      msg.reset();
      assertTrue(msg.readBoolean());
     
     
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.