use of org.springframework.jms.listener.endpoint.StubJmsActivationSpecFactory in project spring-framework by spring-projects.
the class JmsListenerContainerFactoryTests method jcaExclusiveProperties.
@Test
public void jcaExclusiveProperties() {
DefaultJcaListenerContainerFactory factory = new DefaultJcaListenerContainerFactory();
factory.setDestinationResolver(destinationResolver);
factory.setActivationSpecFactory(new StubJmsActivationSpecFactory());
SimpleJmsListenerEndpoint endpoint = new SimpleJmsListenerEndpoint();
endpoint.setMessageListener(new MessageListenerAdapter());
thrown.expect(IllegalStateException.class);
factory.createListenerContainer(endpoint);
}
Aggregations