use of org.apache.qpid.server.message.internal.InternalMessageMetaData in project qpid-broker-j by apache.
the class PropertyConverter_Internal_to_v0_8Test method createTestMessage.
private InternalMessage createTestMessage(final AMQMessageHeader header, byte[] content, final boolean persistent) {
final InternalMessageHeader internalMessageHeader = new InternalMessageHeader(header);
final int contentSize = content == null ? 0 : content.length;
final StoredMessage<InternalMessageMetaData> storedMessage = createInternalStoredMessage(persistent, internalMessageHeader, contentSize);
return ((InternalMessage) InternalMessageMetaDataType.INSTANCE.createMessage(storedMessage));
}
use of org.apache.qpid.server.message.internal.InternalMessageMetaData in project qpid-broker-j by apache.
the class PropertyConverter_Internal_to_v0_8Test method createTestMessage.
private InternalMessage createTestMessage(String to) {
final InternalMessageHeader internalMessageHeader = new InternalMessageHeader(mock(AMQMessageHeader.class));
final StoredMessage<InternalMessageMetaData> handle = createInternalStoredMessage(false, internalMessageHeader, 0);
return new InternalMessage(handle, internalMessageHeader, null, to);
}
Aggregations