AcknowledgeMode.AUTO, true, 1, "testQ");
testRequeueOrNotGuts(ex, expectedRequeue, channel, blockingQueueConsumer);
}
private void testRequeueOrNotDefaultNo(Exception ex, boolean expectedRequeue) throws Exception {
ConnectionFactory connectionFactory = mock(ConnectionFactory.class);
Channel channel = mock(Channel.class);
BlockingQueueConsumer blockingQueueConsumer = new BlockingQueueConsumer(connectionFactory,
new DefaultMessagePropertiesConverter(), new ActiveObjectCounter<BlockingQueueConsumer>(),
AcknowledgeMode.AUTO, true, 1, false, "testQ");
testRequeueOrNotGuts(ex, expectedRequeue, channel, blockingQueueConsumer);