use of org.springframework.integration.jms.SubscribableJmsChannel in project spring-integration by spring-projects.
the class JmsChannelParserTests method topicNameWithResolverChannel.
@Test
public void topicNameWithResolverChannel() {
assertEquals(SubscribableJmsChannel.class, topicNameWithResolverChannel.getClass());
SubscribableJmsChannel channel = (SubscribableJmsChannel) topicNameWithResolverChannel;
DirectFieldAccessor accessor = new DirectFieldAccessor(channel);
JmsTemplate jmsTemplate = (JmsTemplate) accessor.getPropertyValue("jmsTemplate");
AbstractMessageListenerContainer container = (AbstractMessageListenerContainer) accessor.getPropertyValue("container");
assertEquals("foo", jmsTemplate.getDefaultDestinationName());
assertEquals("foo", container.getDestinationName());
}
Aggregations