コード例 #1
0
 @Test
 public void testParseWithTx() throws Exception {
   SimpleMessageListenerContainer container =
       beanFactory.getBean("container6", SimpleMessageListenerContainer.class);
   assertTrue(container.isChannelTransacted());
   assertEquals(5, ReflectionTestUtils.getField(container, "txSize"));
 }
コード例 #2
0
 @Test
 public void testParseWithDefaultQueueRejectedFalse() throws Exception {
   SimpleMessageListenerContainer container =
       beanFactory.getBean("container5", SimpleMessageListenerContainer.class);
   assertEquals(1, ReflectionTestUtils.getField(container, "concurrentConsumers"));
   assertEquals(false, ReflectionTestUtils.getField(container, "defaultRequeueRejected"));
   assertFalse(container.isChannelTransacted());
 }