@ -94,23 +94,23 @@ public class JmsTemplateAutoConfigurationTests {
}
@Test
public void testPubSub En abledByDefault( ) {
public void testPubSub Dis abledByDefault( ) {
this . context = new AnnotationConfigApplicationContext ( ) ;
this . context
. register ( TestConfiguration . class , JmsTemplateAutoConfiguration . class ) ;
this . context . refresh ( ) ;
JmsTemplate jmsTemplate = this . context . getBean ( JmsTemplate . class ) ;
assert Tru e( jmsTemplate . isPubSubDomain ( ) ) ;
assert Fals e( jmsTemplate . isPubSubDomain ( ) ) ;
}
@Test
public void testJmsTemplatePostProcessedSoThatPubSubIs Fals e( ) {
public void testJmsTemplatePostProcessedSoThatPubSubIs Tru e( ) {
this . context = new AnnotationConfigApplicationContext ( ) ;
this . context . register ( TestConfiguration4 . class ,
JmsTemplateAutoConfiguration . class ) ;
this . context . refresh ( ) ;
JmsTemplate jmsTemplate = this . context . getBean ( JmsTemplate . class ) ;
assert Fals e( jmsTemplate . isPubSubDomain ( ) ) ;
assert Tru e( jmsTemplate . isPubSubDomain ( ) ) ;
}
@Test
@ -262,7 +262,7 @@ public class JmsTemplateAutoConfigurationTests {
throws BeansException {
if ( bean . getClass ( ) . isAssignableFrom ( JmsTemplate . class ) ) {
JmsTemplate jmsTemplate = ( JmsTemplate ) bean ;
jmsTemplate . setPubSubDomain ( fals e) ;
jmsTemplate . setPubSubDomain ( tru e) ;
}
return bean ;
}