@Test public void testParseWithTx() throws Exception { SimpleMessageListenerContainer container = beanFactory.getBean("container6", SimpleMessageListenerContainer.class); assertTrue(container.isChannelTransacted()); assertEquals(5, ReflectionTestUtils.getField(container, "txSize")); }
@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()); }