INT-3475: Integer.MAX_VALUE / 2 Phase for MDEs

JIRA: https://jira.spring.io/browse/INT-3475

Change the phase for `SourcePollingChannelAdapterFactoryBean`, `AbstractPollingEndpoint`, `MessageProducerSupport`, `JmsMessageDrivenEndpoint`
to the `Integer.MAX_VALUE / 2`
This commit is contained in:
Artem Bilan
2014-07-17 18:13:06 +03:00
committed by Gary Russell
parent 5bb2141fe2
commit 7abefb08df
8 changed files with 50 additions and 37 deletions

View File

@@ -62,7 +62,7 @@ public class AmqpInboundChannelAdapterParserTests {
assertEquals(DirectChannel.class, channel.getClass());
assertEquals(AmqpInboundChannelAdapter.class, adapter.getClass());
assertEquals(Boolean.TRUE, TestUtils.getPropertyValue(adapter, "autoStartup"));
assertEquals(0, TestUtils.getPropertyValue(adapter, "phase"));
assertEquals(Integer.MAX_VALUE / 2, TestUtils.getPropertyValue(adapter, "phase"));
assertTrue(TestUtils.getPropertyValue(adapter, "messageListenerContainer.missingQueuesFatal", Boolean.class));
}