Examples of clearBody()


Examples of org.apache.qpid.client.message.JMSStreamMessage.clearBody()

    public void testClearBodyMakesWritable() throws Exception
    {
        JMSStreamMessage bm = TestMessageHelper.newJMSStreamMessage();
        bm.writeInt(10);
        bm.reset();
        bm.clearBody();
        bm.writeInt(10);
    }

    public void testWriteBoolean() throws Exception
    {
View Full Code Here

Examples of org.apache.qpid.client.message.JMSTextMessage.clearBody()

    public void testClearBody() throws Exception
    {
        JMSTextMessage tm = TestMessageHelper.newJMSTextMessage();
        tm.setText("pies");
        tm.clearBody();
        String val = tm.getText();
        assertNull(val);
        tm.setText("Banana");
        val = tm.getText();
        assertEquals(val, "Banana");
View Full Code Here

Examples of org.codehaus.activemq.message.ActiveMQMapMessage.clearBody()

    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

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

    try {
      byte testByte = (byte)2;
      msg.writeString(new Byte(testByte).toString());
      msg.reset();
      assertTrue(msg.readByte()==testByte);
      msg.clearBody();
      short testShort = 3;
      msg.writeString(new Short(testShort).toString());
      msg.reset();
      assertTrue(msg.readShort()==testShort);
      msg.clearBody();
View Full Code Here

Examples of org.hornetq.jms.client.HornetQMapMessage.clearBody()

      HornetQMapMessage message = new HornetQMapMessage();
      message.setBoolean(itemName, true);

      Assert.assertTrue(message.itemExists(itemName));

      message.clearBody();

      Assert.assertFalse(message.itemExists(itemName));
   }

   public void testGetType() throws Exception
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.