org.apache.activemq.openwire.commands.OpenWireMessage

Here are the examples of the java api class org.apache.activemq.openwire.commands.OpenWireMessage taken from open source projects.

1. MessageTest#testPropRemove()

Project: activemq-openwire
Source File: MessageTest.java
View license
@Test
public void testPropRemove() throws Exception {
    OpenWireMessage message = new OpenWireMessage();
    message.setProperty("RM", "RM");
    OpenWireMessage unMarshalled = (OpenWireMessage) marshalAndUnmarshall(message, wireFormat);
    unMarshalled.getProperty("NA");
    unMarshalled.removeProperty("RM");
    OpenWireMessage unMarshalledAgain = (OpenWireMessage) marshalAndUnmarshall(unMarshalled, wireFormat);
    assertNull("Prop is gone", unMarshalledAgain.getProperty("RM"));
}

2. MessageTest#testOpenWireMessageMarshaling()

Project: activemq-openwire
Source File: MessageTest.java
View license
@Test
public void testOpenWireMessageMarshaling() throws IOException {
    OpenWireMessage message = new OpenWireMessage();
    message.setCommandId((short) 1);
    message.setOriginalDestination(new OpenWireQueue("queue"));
    message.setGroupID("group");
    message.setGroupSequence(4);
    message.setCorrelationId("correlation");
    message.setMessageId(new MessageId("c1:1:1", 1));
    assertBeanMarshalls(message);
}

3. MessageTest#testOpenWireMessageMarshalingBigMessageId()

Project: activemq-openwire
Source File: MessageTest.java
View license
@Test
public void testOpenWireMessageMarshalingBigMessageId() throws IOException {
    OpenWireMessage message = new OpenWireMessage();
    message.setCommandId((short) 1);
    message.setOriginalDestination(new OpenWireQueue("queue"));
    message.setGroupID("group");
    message.setGroupSequence(4);
    message.setCorrelationId("correlation");
    message.setMessageId(new MessageId("c1:1:1", Short.MAX_VALUE));
    assertBeanMarshalls(message);
}

4. MessageTest#testOpenWireMessageMarshalingBiggerMessageId()

Project: activemq-openwire
Source File: MessageTest.java
View license
@Test
public void testOpenWireMessageMarshalingBiggerMessageId() throws IOException {
    OpenWireMessage message = new OpenWireMessage();
    message.setCommandId((short) 1);
    message.setOriginalDestination(new OpenWireQueue("queue"));
    message.setGroupID("group");
    message.setGroupSequence(4);
    message.setCorrelationId("correlation");
    message.setMessageId(new MessageId("c1:1:1", Integer.MAX_VALUE));
    assertBeanMarshalls(message);
}

5. MessageTest#testOpenWireMessageMarshalingBiggestMessageId()

Project: activemq-openwire
Source File: MessageTest.java
View license
@Test
public void testOpenWireMessageMarshalingBiggestMessageId() throws IOException {
    OpenWireMessage message = new OpenWireMessage();
    message.setCommandId((short) 1);
    message.setOriginalDestination(new OpenWireQueue("queue"));
    message.setGroupID("group");
    message.setGroupSequence(4);
    message.setCorrelationId("correlation");
    message.setMessageId(new MessageId("c1:1:1", Long.MAX_VALUE));
    assertBeanMarshalls(message);
}