PowerMockito.verifyNoMoreInteractions(mockContainer);
}
@Test
public void testListenerContainerFullyConfigured() {
SpringAMQPConsumerConfiguration config = new SpringAMQPConsumerConfiguration();
config.setAcknowledgeMode(AcknowledgeMode.AUTO);
Advice[] adviceChain = new Advice[0];
config.setAdviceChain(adviceChain);
config.setConcurrentConsumers(5);
ConnectionFactory mockConnectionFactory = mock(ConnectionFactory.class);
testSubject.setConnectionFactory(mockConnectionFactory);
ErrorHandler mockErrorHandler = mock(ErrorHandler.class);
config.setErrorHandler(mockErrorHandler);
MessagePropertiesConverter mockMessagePropertiesConverter = mock(MessagePropertiesConverter.class);
config.setMessagePropertiesConverter(mockMessagePropertiesConverter);
config.setPrefetchCount(6);
config.setReceiveTimeout(6000L);
config.setRecoveryInterval(6500L);
config.setShutdownTimeout(3000L);
config.setExclusive(false);
Executor mockTaskExecutor = mock(Executor.class);
config.setTaskExecutor(mockTaskExecutor);
DefaultTransactionAttribute transactionAttribute = new DefaultTransactionAttribute();
config.setTransactionAttribute(transactionAttribute);
PlatformTransactionManager mockTransactionManager = mock(PlatformTransactionManager.class);
config.setTransactionManager(mockTransactionManager);
config.setTxSize(100);
SimpleMessageListenerContainer actual = testSubject.createContainer(config);
// just to make sure PowerMock was correctly configured
assertSame(mockContainer, actual);