コード例 #1
0
 @Test
 public void testJmsTemplateBackOffEverything() {
   this.context =
       createContext(TestConfiguration2.class, TestConfiguration3.class, TestConfiguration5.class);
   JmsTemplate jmsTemplate = this.context.getBean(JmsTemplate.class);
   assertThat(jmsTemplate.getPriority()).isEqualTo(999);
   assertThat(this.context.getBean(ActiveMQConnectionFactory.class).getBrokerURL())
       .isEqualTo("foobar");
   JmsMessagingTemplate messagingTemplate = this.context.getBean(JmsMessagingTemplate.class);
   assertThat(messagingTemplate.getDefaultDestinationName()).isEqualTo("fooBar");
   assertThat(messagingTemplate.getJmsTemplate()).isEqualTo(jmsTemplate);
 }
コード例 #2
0
 @Test
 public void testJmsTemplateBackOff() {
   load(TestConfiguration3.class);
   JmsTemplate jmsTemplate = this.context.getBean(JmsTemplate.class);
   assertThat(jmsTemplate.getPriority()).isEqualTo(999);
 }