use of org.apache.qpid.server.typedmessage.mimecontentconverter.MapToJmsMapMessage in project qpid-broker-j by apache.
the class MessageConverter_Internal_to_0_8Test method testMapMessageWithMimeType.
public void testMapMessageWithMimeType() throws Exception {
HashMap<Object, Object> content = new HashMap<>();
content.put("key1", 37);
content.put("key2", "foo");
final String mimeType = "foo/bar";
final MapToJmsMapMessage mapToJmsMapMessage = new MapToJmsMapMessage();
final byte[] expectedContent = mapToJmsMapMessage.toMimeContent(content);
doTest(content, mimeType, expectedContent, mapToJmsMapMessage.getMimeType());
}
Aggregations