use of org.apache.synapse.endpoints.DefaultEndpoint in project wso2-synapse by wso2.
the class DefaultEndpointSerializerTest method test.
public void test() throws Exception {
String inputXml = "<endpoint xmlns=\"http://ws.apache.org/ns/synapse\">" + "<default format=\"soap11\" />" + "</endpoint>";
OMElement inputElement = createOMElement(inputXml);
DefaultEndpoint endpoint = (DefaultEndpoint) DefaultEndpointFactory.getEndpointFromElement(inputElement, true, null);
OMElement serializedResponse = DefaultEndpointSerializer.getElementFromEndpoint(endpoint);
assertTrue("Endpoint not serialized!", compare(serializedResponse, inputElement));
}
Aggregations