@ -147,6 +147,7 @@ public class JmsAutoConfigurationTests {
@Test
public void testJmsListenerContainerFactoryWithCustomSettings ( ) {
load ( EnableJmsConfiguration . class ,
"spring.jms.listener.autoStartup=false" ,
"spring.jms.listener.acknowledgeMode=client" ,
"spring.jms.listener.concurrency=2" ,
"spring.jms.listener.maxConcurrency=10" ) ;
@ -156,9 +157,10 @@ public class JmsAutoConfigurationTests {
jmsListenerContainerFactory . getClass ( ) ) ;
DefaultMessageListenerContainer listenerContainer = ( ( DefaultJmsListenerContainerFactory )
jmsListenerContainerFactory ) . createListenerContainer ( mock ( JmsListenerEndpoint . class ) ) ;
assertEquals ( false , listenerContainer . isAutoStartup ( ) ) ;
assertEquals ( Session . CLIENT_ACKNOWLEDGE , listenerContainer . getSessionAcknowledgeMode ( ) ) ;
assertEquals ( 2 , listenerContainer . getConcurrentConsumers ( ) ) ;
assertEquals ( 10 , listenerContainer . getMaxConcurrentConsumers ( ) ) ;
assertEquals ( Session . CLIENT_ACKNOWLEDGE , listenerContainer . getSessionAcknowledgeMode ( ) ) ;
}
@Test