use of org.apache.activemq.artemis.jms.client.ActiveMQObjectMessage in project activemq-artemis by apache.
the class MessageHeaderTest method testCopyOnForeignObjectMessage.
@Test
public void testCopyOnForeignObjectMessage() throws JMSException {
ClientMessage clientMessage = new ClientMessageImpl(ActiveMQTextMessage.TYPE, true, 0, System.currentTimeMillis(), (byte) 4, 1000);
ClientSession session = new FakeSession(clientMessage);
ObjectMessage foreignObjectMessage = new SimpleJMSObjectMessage();
ActiveMQObjectMessage copy = new ActiveMQObjectMessage(foreignObjectMessage, session, null);
MessageHeaderTestBase.ensureEquivalent(foreignObjectMessage, copy);
}
Aggregations