use of org.apache.qpid.server.message.AMQMessageHeader in project qpid-broker-j by apache.
the class RejectPolicyHandlerTest method createIncomingMessage.
private ServerMessage createIncomingMessage(final long size) {
AMQMessageHeader incomingMessageHeader = mock(AMQMessageHeader.class);
ServerMessage incomingMessage = mock(ServerMessage.class);
when(incomingMessage.getMessageHeader()).thenReturn(incomingMessageHeader);
when(incomingMessage.getSizeIncludingHeader()).thenReturn(size);
when(incomingMessage.getStoredMessage()).thenReturn(mock(StoredMessage.class));
return incomingMessage;
}
Aggregations