Search in sources :

Example 6 with ListToJmsStreamMessage

use of org.apache.qpid.server.typedmessage.mimecontentconverter.ListToJmsStreamMessage in project qpid-broker-j by apache.

the class MessageConverter_Internal_to_0_10Test method testListMessageWithMimeType.

public void testListMessageWithMimeType() throws Exception {
    ArrayList<?> content = Lists.newArrayList("testItem", 37.5, 42);
    final ListToJmsStreamMessage listToJmsStreamMessage = new ListToJmsStreamMessage();
    final byte[] expectedContent = listToJmsStreamMessage.toMimeContent(content);
    doTest(content, "foo/bar", expectedContent, listToJmsStreamMessage.getMimeType());
}
Also used : ListToJmsStreamMessage(org.apache.qpid.server.typedmessage.mimecontentconverter.ListToJmsStreamMessage)

Example 7 with ListToJmsStreamMessage

use of org.apache.qpid.server.typedmessage.mimecontentconverter.ListToJmsStreamMessage in project qpid-broker-j by apache.

the class MessageConverter_Internal_to_0_10Test method testListMessageWithoutMimeType.

public void testListMessageWithoutMimeType() throws Exception {
    ArrayList<?> content = Lists.newArrayList("testItem", 37.5, 42);
    final ListToJmsStreamMessage listToJmsStreamMessage = new ListToJmsStreamMessage();
    final byte[] expectedContent = listToJmsStreamMessage.toMimeContent(content);
    doTest(content, null, expectedContent, listToJmsStreamMessage.getMimeType());
}
Also used : ListToJmsStreamMessage(org.apache.qpid.server.typedmessage.mimecontentconverter.ListToJmsStreamMessage)

Example 8 with ListToJmsStreamMessage

use of org.apache.qpid.server.typedmessage.mimecontentconverter.ListToJmsStreamMessage in project qpid-broker-j by apache.

the class MessageConverter_Internal_to_0_8Test method testListMessageWithoutMimeType.

public void testListMessageWithoutMimeType() throws Exception {
    ArrayList<?> content = Lists.newArrayList("testItem", 37.5, 42);
    final ListToJmsStreamMessage listToJmsStreamMessage = new ListToJmsStreamMessage();
    final byte[] expectedContent = listToJmsStreamMessage.toMimeContent(content);
    doTest(content, null, expectedContent, listToJmsStreamMessage.getMimeType());
}
Also used : ListToJmsStreamMessage(org.apache.qpid.server.typedmessage.mimecontentconverter.ListToJmsStreamMessage)

Aggregations

ListToJmsStreamMessage (org.apache.qpid.server.typedmessage.mimecontentconverter.ListToJmsStreamMessage)8 QpidByteBuffer (org.apache.qpid.server.bytebuffer.QpidByteBuffer)4 NamedAddressSpace (org.apache.qpid.server.model.NamedAddressSpace)4 Message_1_0 (org.apache.qpid.server.protocol.v1_0.Message_1_0)4 Binary (org.apache.qpid.server.protocol.v1_0.type.Binary)4 ApplicationProperties (org.apache.qpid.server.protocol.v1_0.type.messaging.ApplicationProperties)4 Data (org.apache.qpid.server.protocol.v1_0.type.messaging.Data)4 Properties (org.apache.qpid.server.protocol.v1_0.type.messaging.Properties)4 MessageTransferMessage (org.apache.qpid.server.protocol.v0_10.MessageTransferMessage)2 AMQMessage (org.apache.qpid.server.protocol.v0_8.AMQMessage)2