CxfEndpoint endpoint = createEndpoint(getEndpointURI() + "?dataFormat=MESSAGE");
assertEquals("We should get the Message DataFormat", DataFormat.MESSAGE, endpoint.getDataFormat());
}
public void testGetProperties() throws Exception {
CxfSpringEndpoint endpoint = (CxfSpringEndpoint)createEndpoint(getEndpointURI());
QName service = endpoint.getBean().getServiceName();
assertEquals("We should get the right service name", service, SERVICE_NAME);
assertEquals("The cxf endpoint's DataFromat should be MESSAGE", DataFormat.MESSAGE, endpoint.getDataFormat());
endpoint = (CxfSpringEndpoint)createEndpoint("cxf:bean:testPropertiesEndpoint");
service = CxfEndpointUtils.getServiceName(endpoint);
assertEquals("We should get the right service name", service, SERVICE_NAME);
QName port = CxfEndpointUtils.getPortName(endpoint);