use of org.springframework.jms.support.destination.JmsDestinationAccessor in project spring-integration by spring-projects.
the class JmsInboundGatewayParserTests method gatewayWithPubSubDomain.
@Test
public void gatewayWithPubSubDomain() {
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("jmsGatewayWithPubSubDomain.xml", this.getClass());
JmsMessageDrivenEndpoint endpoint = context.getBean("gateway", JmsMessageDrivenEndpoint.class);
JmsDestinationAccessor container = (JmsDestinationAccessor) new DirectFieldAccessor(endpoint).getPropertyValue("listenerContainer");
assertEquals(Boolean.TRUE, container.isPubSubDomain());
context.close();
}
Aggregations