org.apache.activemq.artemis.jms.tests.message.SimpleJMSTextMessage

Here are the examples of the java api class org.apache.activemq.artemis.jms.tests.message.SimpleJMSTextMessage taken from open source projects.

1. ForeignMessageTest#testForeignMessageSetDestination()

View license
@Test
public void testForeignMessageSetDestination() throws Exception {
    // create a Bytes foreign message
    SimpleJMSTextMessage txt = new SimpleJMSTextMessage("hello from Brazil!");
    txt.setJMSDestination(null);
    queueProd.send(txt);
    ProxyAssertSupport.assertNotNull(txt.getJMSDestination());
    TextMessage tm = (TextMessage) queueCons.receive();
    ProxyAssertSupport.assertNotNull(tm);
    ProxyAssertSupport.assertEquals("hello from Brazil!", txt.getText());
}

2. ForeignTextMessageTest#createForeignMessage()

View license
@Override
protected Message createForeignMessage() throws Exception {
    SimpleJMSTextMessage m = new SimpleJMSTextMessage();
    m.setText("this is the payload");
    return m;
}