Package org.activemq.message

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


      msg.reset();
      assertTrue(((Double)msg.readObject()).doubleValue()==testDouble);
      msg.clearBody();
     
      char testChar = 'z';
      msg.writeChar(testChar);
      msg.reset();
      assertTrue(((Character)msg.readObject()).charValue()==testChar);
      msg.clearBody();
     
      byte[] data = new byte[50];
View Full Code Here


  public void testReadChar()
  {
    ActiveMQStreamMessage msg = new ActiveMQStreamMessage();
    try {
      char test = 'z';
      msg.writeChar(test);
      msg.reset();
      assertTrue(msg.readChar()==test);
      msg.reset();
      assertTrue(msg.readString().equals(new Character(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.