Package org.hornetq.jms.client

Examples of org.hornetq.jms.client.HornetQStreamMessage.readShort()


      HornetQStreamMessage message = new HornetQStreamMessage();

      message.writeByte(value);
      message.reset();

      Assert.assertEquals(value, message.readShort());
   }

   public void testReadShortFromShort() throws Exception
   {
      short value = RandomUtil.randomShort();
View Full Code Here


      HornetQStreamMessage message = new HornetQStreamMessage();

      message.writeShort(value);
      message.reset();

      Assert.assertEquals(value, message.readShort());
   }

   public void testReadShortFromString() throws Exception
   {
      short value = RandomUtil.randomShort();
View Full Code Here

      HornetQStreamMessage message = new HornetQStreamMessage();

      message.writeString(Short.toString(value));
      message.reset();

      Assert.assertEquals(value, message.readShort());
   }

   public void testReadShortFromInvalidType() throws Exception
   {
      doReadTypeFromInvalidType(RandomUtil.randomFloat(), new TypeReader()
View Full Code Here

      HornetQStreamMessage message = new HornetQStreamMessage();

      message.writeByte(value);
      message.reset();

      Assert.assertEquals(value, message.readShort());
   }

   public void testReadShortFromShort() throws Exception
   {
      short value = RandomUtil.randomShort();
View Full Code Here

      HornetQStreamMessage message = new HornetQStreamMessage();

      message.writeShort(value);
      message.reset();

      Assert.assertEquals(value, message.readShort());
   }

   public void testReadShortFromString() throws Exception
   {
      short value = RandomUtil.randomShort();
View Full Code Here

      HornetQStreamMessage message = new HornetQStreamMessage();

      message.writeString(Short.toString(value));
      message.reset();

      Assert.assertEquals(value, message.readShort());
   }

   public void testReadShortFromInvalidType() throws Exception
   {
      doReadTypeFromInvalidType(RandomUtil.randomFloat(), new TypeReader()
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.