use of org.apache.camel.component.cxf.CxfEndpoint in project camel by apache.
the class CxfEndpointBeansRouterTest method testCxfEndpointBeanDefinitionParser.
@Test
public void testCxfEndpointBeanDefinitionParser() {
CxfEndpoint routerEndpoint = ctx.getBean("routerEndpoint", CxfEndpoint.class);
assertEquals("Got the wrong endpoint address", routerEndpoint.getAddress(), "http://localhost:" + CXFTestSupport.getPort1() + "/CxfEndpointBeansRouterTest/router");
assertEquals("Got the wrong endpont service class", "org.apache.camel.component.cxf.HelloService", routerEndpoint.getServiceClass().getName());
}
use of org.apache.camel.component.cxf.CxfEndpoint in project camel by apache.
the class CxfEndpointUtilsTest method testGetDataFormatCXF.
@Test
public void testGetDataFormatCXF() throws Exception {
CxfEndpoint endpoint = createEndpoint(getEndpointURI() + sepChar() + "dataFormat=CXF_MESSAGE");
assertEquals("We should get the Message DataFormat", DataFormat.CXF_MESSAGE, endpoint.getDataFormat());
}
use of org.apache.camel.component.cxf.CxfEndpoint in project camel by apache.
the class CxfEndpointUtilsTest method testGetDataFormatMessage.
@SuppressWarnings("deprecation")
@Test
public void testGetDataFormatMessage() throws Exception {
CxfEndpoint endpoint = createEndpoint(getEndpointURI() + sepChar() + "dataFormat=MESSAGE");
assertEquals("We should get the Message DataFormat", DataFormat.MESSAGE, endpoint.getDataFormat());
}
use of org.apache.camel.component.cxf.CxfEndpoint in project camel by apache.
the class CxfEndpointUtilsTest method testGetDataFormatRAW.
@Test
public void testGetDataFormatRAW() throws Exception {
CxfEndpoint endpoint = createEndpoint(getEndpointURI() + sepChar() + "dataFormat=RAW");
assertEquals("We should get the Message DataFormat", DataFormat.RAW, endpoint.getDataFormat());
}
use of org.apache.camel.component.cxf.CxfEndpoint in project camel by apache.
the class CxfEndpointUtilsTest method testCheckServiceClassProcedure.
@Test
public void testCheckServiceClassProcedure() throws Exception {
CxfEndpoint endpoint = createEndpoint(getNoServiceClassURI());
assertNotNull(endpoint.createProducer());
}
Aggregations