Package org.codehaus.activemq.message

Examples of org.codehaus.activemq.message.ActiveMQMapMessage


  }


  public void testGetBoolean()
  {
    ActiveMQMapMessage msg = new ActiveMQMapMessage();
    try {
      msg.setBoolean(name,true);
      msg.setReadOnly(true);
      assertTrue(msg.getBoolean(name));
      msg.clearBody();
      msg.setString(name,"true");
      assertTrue(msg.getBoolean(name));
    }catch(JMSException jmsEx){
      jmsEx.printStackTrace();
      assertTrue(false);
    }
  }
View Full Code Here


  }

  public void testGetByte()
  {

    ActiveMQMapMessage msg = new ActiveMQMapMessage();
    try {
      msg.setByte(this.name,(byte)1);
      msg.setReadOnly(true);
      assertTrue(msg.getByte(this.name)==(byte)1);
    }catch(JMSException jmsEx){
      jmsEx.printStackTrace();
      assertTrue(false);
    }
  }
View Full Code Here

    }
  }

  public void testGetShort()
  {
    ActiveMQMapMessage msg = new ActiveMQMapMessage();
    try {
      msg.setByte(this.name,(byte)1);
      msg.setReadOnly(true);
      assertTrue(msg.getByte(this.name)==(byte)1);
    }catch(JMSException jmsEx){
      jmsEx.printStackTrace();
      assertTrue(false);
    }
  }
View Full Code Here

TOP

Related Classes of org.codehaus.activemq.message.ActiveMQMapMessage

Copyright © 2018 www.massapicom. 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.