Package org.activemq.message

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


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


  public void testReadFloat()
  {
    ActiveMQStreamMessage msg = new ActiveMQStreamMessage();
    try {
      float test = 4.4f;
      msg.writeFloat(test);
      msg.reset();
      assertTrue(msg.readFloat()==test);
      msg.reset();
      assertTrue(msg.readDouble()==test);
      msg.reset();
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.