Package org.activemq.message

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


      msg.reset();
      assertTrue(((Integer)msg.readObject()).intValue()==testInt);
      msg.clearBody();
     
      long testLong = 6l;
      msg.writeLong(testLong);
      msg.reset();
      assertTrue(((Long)msg.readObject()).longValue()==testLong);
      msg.clearBody();
     
      float testFloat = 6.6f;
View Full Code Here


  public void testReadLong()
  {
    ActiveMQStreamMessage msg = new ActiveMQStreamMessage();
    try {
      long test = 4l;
      msg.writeLong(test);
      msg.reset();
      assertTrue(msg.readLong()==test);
      msg.reset();
      assertTrue(msg.readString().equals(new Long(test).toString()));
    }catch(JMSException jmsEx){
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.