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