use of org.apache.activemq.artemis.jms.client.ActiveMQMapMessage in project activemq-artemis by apache.
the class ActiveMQMapMessageTest method testGetIntFromShort.
@Test
public void testGetIntFromShort() throws Exception {
short value = RandomUtil.randomShort();
ActiveMQMapMessage message = new ActiveMQMapMessage();
message.setShort(itemName, value);
Assert.assertEquals(value, message.getInt(itemName));
}
use of org.apache.activemq.artemis.jms.client.ActiveMQMapMessage in project activemq-artemis by apache.
the class ActiveMQMapMessageTest method testGetIntFromInt.
@Test
public void testGetIntFromInt() throws Exception {
int value = RandomUtil.randomInt();
ActiveMQMapMessage message = new ActiveMQMapMessage();
message.setInt(itemName, value);
Assert.assertEquals(value, message.getInt(itemName));
}
use of org.apache.activemq.artemis.jms.client.ActiveMQMapMessage in project activemq-artemis by apache.
the class ActiveMQMapMessageTest method testGetIntFromByte.
@Test
public void testGetIntFromByte() throws Exception {
byte value = RandomUtil.randomByte();
ActiveMQMapMessage message = new ActiveMQMapMessage();
message.setByte(itemName, value);
Assert.assertEquals(value, message.getInt(itemName));
}
use of org.apache.activemq.artemis.jms.client.ActiveMQMapMessage in project activemq-artemis by apache.
the class ActiveMQMapMessageTest method doTestSetObject.
private void doTestSetObject(final Object value) throws Exception {
ActiveMQMapMessage message = new ActiveMQMapMessage();
message.setObject(itemName, value);
Assert.assertEquals(value, message.getObject(itemName));
}
use of org.apache.activemq.artemis.jms.client.ActiveMQMapMessage in project activemq-artemis by apache.
the class ActiveMQMapMessageTest method testGetType.
@Test
public void testGetType() throws Exception {
ActiveMQMapMessage message = new ActiveMQMapMessage();
Assert.assertEquals(ActiveMQMapMessage.TYPE, message.getType());
}
Aggregations