use of org.springframework.integration.xmpp.core.AbstractXmppConnectionAwareMessageHandler in project spring-integration by spring-projects.
the class PresenceOutboundChannelAdapterParserTests method testRosterEventOutboundChannelAdapterParserAsPollingConsumer.
@Test
public void testRosterEventOutboundChannelAdapterParserAsPollingConsumer() {
Object pollingConsumer = context.getBean("pollingOutboundRosterAdapter");
assertTrue(pollingConsumer instanceof PollingConsumer);
AbstractXmppConnectionAwareMessageHandler handler = (AbstractXmppConnectionAwareMessageHandler) TestUtils.getPropertyValue(pollingConsumer, "handler");
assertEquals(23, TestUtils.getPropertyValue(handler, "order"));
}
use of org.springframework.integration.xmpp.core.AbstractXmppConnectionAwareMessageHandler in project spring-integration by spring-projects.
the class PresenceOutboundChannelAdapterParserTests method testRosterEventOutboundChannelAdapterParserEventConsumer.
@Test
public void testRosterEventOutboundChannelAdapterParserEventConsumer() {
Object eventConsumer = context.getBean("eventOutboundRosterAdapter");
assertTrue(eventConsumer instanceof EventDrivenConsumer);
AbstractXmppConnectionAwareMessageHandler handler = (AbstractXmppConnectionAwareMessageHandler) TestUtils.getPropertyValue(eventConsumer, "handler");
assertEquals(34, TestUtils.getPropertyValue(handler, "order"));
}
Aggregations