Assert.assertEquals(value, message.getShort(itemName));
}
public void testGetShortFromInvalidType() throws Exception
{
HornetQMapMessage message = new HornetQMapMessage();
message.setFloat(itemName, RandomUtil.randomFloat());
try
{
message.getShort(itemName);
Assert.fail("MessageFormatException");
}
catch (MessageFormatException e)
{
}