return new String[]{"org/apache/camel/component/cxf/spring/CxfEndpointBeans.xml"};
}
@Test
public void testCxfEndpointBeanDefinitionParser() {
CxfEndpoint routerEndpoint = (CxfEndpoint)ctx.getBean("routerEndpoint");
assertEquals("Got the wrong endpoint address", "http://localhost:" + port1
+ "/CxfEndpointBeanTest/router", routerEndpoint.getAddress());
assertEquals("Got the wrong endpont service class", "org.apache.camel.component.cxf.HelloService",
routerEndpoint.getServiceClass().getName());
assertEquals("Got the wrong handlers size", 1, routerEndpoint.getHandlers().size());
assertEquals("Got the wrong schemalocations size", 1, routerEndpoint.getSchemaLocations().size());
assertEquals("Got the wrong schemalocation", "classpath:wsdl/Message.xsd", routerEndpoint.getSchemaLocations().get(0));
CxfEndpoint myEndpoint = (CxfEndpoint)ctx.getBean("myEndpoint");
assertEquals("Got the wrong endpointName", endpointName, myEndpoint.getPortName());
assertEquals("Got the wrong serviceName", serviceName, myEndpoint.getServiceName());
assertTrue("We should get a soap binding", myEndpoint.getBindingConfig() instanceof SoapBindingConfiguration);
SoapBindingConfiguration configuration = (SoapBindingConfiguration)myEndpoint.getBindingConfig();
assertEquals("We should get a right soap version", "1.2", String.valueOf(configuration.getVersion().getVersion()));
}