@Test public void testTransformDocumentSourceOptionalOfParamsOptionalOfURIResolver() throws SAXException, IOException { final Document xmlDocument = documentXmlConverter.loadDocument(doc); final StreamSource xslSource = new StreamSource(Thread.currentThread() .getContextClassLoader().getResourceAsStream(xslName)); final String actualOutput = sut.transform(xmlDocument, xslSource, params, uriResolver); assertTrue(compareXMLs(docTransformed, actualOutput, ignoreList) .similar()); }
@Override public String transform(Document xmlDocument, Source xslSource, Optional<Params> params, Optional<URIResolver> uriResolver) { return transformToStreamResult(new DOMSource(xmlDocument), xslSource, params, uriResolver).getOutputStream().toString(); }
XmlTransformerImpl implements XmlTransformer { @Override public String transform(Document xmlDocument, Source xslSource, Optional<Params> params, Optional<URIResolver> uriResolver) { return transformToStreamResult(new DOMSource(xmlDocument), xslSource, params, uriResolver).getOutputStream().toString(); } }
XmlTransformerImpl implements XmlTransformer { @Override public String transform(Document xmlDocument, Source xslSource, Optional<Params> params, Optional<URIResolver> uriResolver) { return transformToStreamResult(new DOMSource(xmlDocument), xslSource, params, uriResolver).getOutputStream().toString(); } XmlTransformerImpl(SimpleMarshaller marshaller); }
XmlTransformerImpl implements XmlTransformer { @Override public String transform(Document xmlDocument, Source xslSource, Optional<Params> params, Optional<URIResolver> uriResolver) { return transformToStreamResult(new DOMSource(xmlDocument), xslSource, params, uriResolver).getOutputStream().toString(); } XmlTransformerImpl(SimpleMarshaller marshaller); @Override String transform(Document xmlDocument, Source xslSource,
			Optional<Params> params, Optional<URIResolver> uriResolver); @Override String transform(Document xmlDocument, String xslFileName,
			Optional<Params> params, Optional<URIResolver> uriResolver); @Override String transform(Object obj, String xslFileName,
			Optional<Params> params, Optional<URIResolver> uriResolver); @Override String transform(Source xmlSource, Source xslSource,
			Optional<Params> params, Optional<URIResolver> uriResolver); @Override String transform(String xml, String xslFileName,
			Optional<Params> params, Optional<URIResolver> uriResolver); }
XmlTransformerImpl implements XmlTransformer { @Override public String transform(Document xmlDocument, Source xslSource, Optional<Params> params, Optional<URIResolver> uriResolver) { return transformToStreamResult(new DOMSource(xmlDocument), xslSource, params, uriResolver).getOutputStream().toString(); } XmlTransformerImpl(SimpleMarshaller marshaller); @Override String transform(Document xmlDocument, Source xslSource,
			Optional<Params> params, Optional<URIResolver> uriResolver); @Override String transform(Document xmlDocument, String xslFileName,
			Optional<Params> params, Optional<URIResolver> uriResolver); @Override String transform(Object obj, String xslFileName,
			Optional<Params> params, Optional<URIResolver> uriResolver); @Override String transform(Source xmlSource, Source xslSource,
			Optional<Params> params, Optional<URIResolver> uriResolver); @Override String transform(String xml, String xslFileName,
			Optional<Params> params, Optional<URIResolver> uriResolver);  }