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());
}
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());
}
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());
}
Aggregations