Package org.codehaus.activemq.message

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


      msg.reset();
      assertTrue(msg.readInt()==test);
      msg.reset();
      assertTrue(msg.readLong()==test);
      msg.reset();
      assertTrue(msg.readString().equals(new Integer(test).toString()));
    }catch(JMSException jmsEx){
      jmsEx.printStackTrace();
      assertTrue(false);
    }
  }
View Full Code Here


      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){
      jmsEx.printStackTrace();
      assertTrue(false);
    }
  }
View Full Code Here

      msg.reset();
      assertTrue(msg.readFloat()==test);
      msg.reset();
      assertTrue(msg.readDouble()==test);
      msg.reset();
      assertTrue(msg.readString().equals(new Float(test).toString()));
    }catch(JMSException jmsEx){
      jmsEx.printStackTrace();
      assertTrue(false);
    }
  }
View Full Code Here

      double test = 4.4d;
      msg.writeDouble(test);
      msg.reset();
      assertTrue(msg.readDouble()==test);
      msg.reset();
      assertTrue(msg.readString().equals(new Double(test).toString()));
    }catch(JMSException jmsEx){
      jmsEx.printStackTrace();
      assertTrue(false);
    }
  }
View Full Code Here

    try {
      msg.writeBoolean(true);
      msg.reset();
      assertTrue(msg.readBoolean());
      msg.reset();
      assertTrue(msg.readString().equals("true"));
    }catch(JMSException jmsEx){
      jmsEx.printStackTrace();
      assertTrue(false);
    }
  }
View Full Code Here

      msg.reset();
      assertTrue(msg.readInt()==test);
      msg.reset();
      assertTrue(msg.readLong()==test);
      msg.reset();
      assertTrue(msg.readString().equals(new Byte(test).toString()));
    }catch(JMSException jmsEx){
      jmsEx.printStackTrace();
      assertTrue(false);
    }
  }
View Full Code Here

      msg.reset();
      assertTrue(msg.readInt()==test);
      msg.reset();
      assertTrue(msg.readLong()==test);
      msg.reset();
      assertTrue(msg.readString().equals(new Short(test).toString()));
    }catch(JMSException jmsEx){
      jmsEx.printStackTrace();
      assertTrue(false);
    }
  }
View Full Code Here

      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){
      jmsEx.printStackTrace();
      assertTrue(false);
    }
  }
View Full Code Here

    try {
      msg.writeBoolean(true);
      msg.reset();
      assertTrue(msg.readBoolean());
      msg.reset();
      assertTrue(msg.readString().equals("true"));
    }catch(JMSException jmsEx){
      jmsEx.printStackTrace();
      assertTrue(false);
    }
  }
View Full Code Here

      msg.reset();
      assertTrue(msg.readInt()==test);
      msg.reset();
      assertTrue(msg.readLong()==test);
      msg.reset();
      assertTrue(msg.readString().equals(new Byte(test).toString()));
    }catch(JMSException jmsEx){
      jmsEx.printStackTrace();
      assertTrue(false);
    }
  }
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.