use of org.jdom2.transform.JDOMSource in project webservices-axiom by apache.
the class ClientServerTest method runTest.
@Override
protected void runTest() throws Throwable {
JDOMSource source = new JDOMSource(new SAXBuilder().build(ClientServerTest.class.getResourceAsStream("request.xml")).getRootElement());
JDOMResult result = new JDOMResult();
context.getBean(WebServiceTemplate.class).sendSourceAndReceiveToResult(source, result);
assertEquals(8.0d, Double.parseDouble(result.getDocument().getRootElement().getText()), 1e-6);
}
Aggregations