use of org.apache.camel.component.cxf.jaxrs.CxfRsEndpoint in project camel by apache.
the class CxfRsEndpointBeansTest method testCxfBusInjection.
@Test
public void testCxfBusInjection() {
CxfRsEndpoint serviceEndpoint = context.getEndpoint("cxfrs:bean:serviceEndpoint", CxfRsEndpoint.class);
CxfRsEndpoint routerEndpoint = context.getEndpoint("cxfrs:bean:routerEndpoint", CxfRsEndpoint.class);
JAXRSServerFactoryBean server = routerEndpoint.createJAXRSServerFactoryBean();
JAXRSClientFactoryBean client = serviceEndpoint.createJAXRSClientFactoryBean();
assertEquals("These cxfrs endpoints don't share the same bus", server.getBus().getId(), client.getBus().getId());
}
Aggregations