use of org.springframework.jms.listener.AbstractMessageListenerContainer in project camel by apache.
the class JmsEndpointConfigurationTest method testSelector.
@Test
public void testSelector() throws Exception {
JmsEndpoint endpoint = resolveMandatoryEndpoint("jms:Foo.Bar?selector=foo%3D'ABC'", JmsEndpoint.class);
JmsConsumer consumer = endpoint.createConsumer(dummyProcessor);
AbstractMessageListenerContainer container = consumer.getListenerContainer();
assertEquals("selector", "foo='ABC'", container.getMessageSelector());
Object object = container.getMessageListener();
EndpointMessageListener messageListener = assertIsInstanceOf(EndpointMessageListener.class, object);
assertFalse("Should not have replyToDisabled", messageListener.isDisableReplyTo());
assertFalse("Should not have isEagerLoadingOfProperties()", messageListener.isEagerLoadingOfProperties());
}
use of org.springframework.jms.listener.AbstractMessageListenerContainer in project camel by apache.
the class JmsEndpointConfigurationTest method testCreateSimpleMessageListener.
@Test
public void testCreateSimpleMessageListener() throws Exception {
JmsEndpoint endpoint = resolveMandatoryEndpoint("jms:Foo.Bar?consumerType=Simple", JmsEndpoint.class);
JmsConsumer consumer = endpoint.createConsumer(dummyProcessor);
AbstractMessageListenerContainer container = consumer.getListenerContainer();
assertTrue("Should have been a SimpleMessageListenerContainer", container instanceof SimpleMessageListenerContainer);
}
Aggregations