@Test(expected=IllegalArgumentException.class) public void shouldRejectNullResult() { t.transformTo(null); }
public void transformTo(Result r) { if (source == null) { throw new IllegalStateException("source must not be null"); } if (r == null) { throw new IllegalArgumentException("result must not be null"); } try { TransformerFactory fac = factory; if (fac == null) { fac = TransformerFactoryConfigurer.Default.configure(TransformerFactory.newInstance()); } Transformer t; if (styleSheet != null) { t = fac.newTransformer(styleSheet); } else { t = fac.newTransformer(); } if (uriResolver != null) { t.setURIResolver(uriResolver); } if (errorListener != null) { t.setErrorListener(errorListener); } t.setOutputProperties(output); for (Map.Entry<String, Object> ent : params.entrySet()) { t.setParameter(ent.getKey(), ent.getValue()); } t.transform(source, r); } catch (javax.xml.transform.TransformerConfigurationException e) { throw new ConfigurationException(e); } catch (javax.xml.transform.TransformerException e) { throw new XMLUnitException(e); } }
Transformation { public void transformTo(Result r) { if (source == null) { throw new IllegalStateException("source must not be null"); } if (r == null) { throw new IllegalArgumentException("result must not be null"); } try { TransformerFactory fac = factory; if (fac == null) { fac = TransformerFactoryConfigurer.Default.configure(TransformerFactory.newInstance()); } Transformer t; if (styleSheet != null) { t = fac.newTransformer(styleSheet); } else { t = fac.newTransformer(); } if (uriResolver != null) { t.setURIResolver(uriResolver); } if (errorListener != null) { t.setErrorListener(errorListener); } t.setOutputProperties(output); for (Map.Entry<String, Object> ent : params.entrySet()) { t.setParameter(ent.getKey(), ent.getValue()); } t.transform(source, r); } catch (javax.xml.transform.TransformerConfigurationException e) { throw new ConfigurationException(e); } catch (javax.xml.transform.TransformerException e) { throw new XMLUnitException(e); } } }
Transformation { public void transformTo(Result r) { if (source == null) { throw new IllegalStateException("source must not be null"); } if (r == null) { throw new IllegalArgumentException("result must not be null"); } try { TransformerFactory fac = factory; if (fac == null) { fac = TransformerFactoryConfigurer.Default.configure(TransformerFactory.newInstance()); } Transformer t; if (styleSheet != null) { t = fac.newTransformer(styleSheet); } else { t = fac.newTransformer(); } if (uriResolver != null) { t.setURIResolver(uriResolver); } if (errorListener != null) { t.setErrorListener(errorListener); } t.setOutputProperties(output); for (Map.Entry<String, Object> ent : params.entrySet()) { t.setParameter(ent.getKey(), ent.getValue()); } t.transform(source, r); } catch (javax.xml.transform.TransformerConfigurationException e) { throw new ConfigurationException(e); } catch (javax.xml.transform.TransformerException e) { throw new XMLUnitException(e); } } Transformation();  Transformation(Source s); }
Transformation { public void transformTo(Result r) { if (source == null) { throw new IllegalStateException("source must not be null"); } if (r == null) { throw new IllegalArgumentException("result must not be null"); } try { TransformerFactory fac = factory; if (fac == null) { fac = TransformerFactoryConfigurer.Default.configure(TransformerFactory.newInstance()); } Transformer t; if (styleSheet != null) { t = fac.newTransformer(styleSheet); } else { t = fac.newTransformer(); } if (uriResolver != null) { t.setURIResolver(uriResolver); } if (errorListener != null) { t.setErrorListener(errorListener); } t.setOutputProperties(output); for (Map.Entry<String, Object> ent : params.entrySet()) { t.setParameter(ent.getKey(), ent.getValue()); } t.transform(source, r); } catch (javax.xml.transform.TransformerConfigurationException e) { throw new ConfigurationException(e); } catch (javax.xml.transform.TransformerException e) { throw new XMLUnitException(e); } } Transformation();  Transformation(Source s); void setSource(Source s); void setStylesheet(Source s); void addOutputProperty(String name, String value); void clearOutputProperties(); void addParameter(String name, Object value); void clearParameters(); void setFactory(TransformerFactory f); void setURIResolver(URIResolver r); void setErrorListener(ErrorListener l); void transformTo(Result r); String transformToString(); Document transformToDocument(); }
Transformation { public void transformTo(Result r) { if (source == null) { throw new IllegalStateException("source must not be null"); } if (r == null) { throw new IllegalArgumentException("result must not be null"); } try { TransformerFactory fac = factory; if (fac == null) { fac = TransformerFactoryConfigurer.Default.configure(TransformerFactory.newInstance()); } Transformer t; if (styleSheet != null) { t = fac.newTransformer(styleSheet); } else { t = fac.newTransformer(); } if (uriResolver != null) { t.setURIResolver(uriResolver); } if (errorListener != null) { t.setErrorListener(errorListener); } t.setOutputProperties(output); for (Map.Entry<String, Object> ent : params.entrySet()) { t.setParameter(ent.getKey(), ent.getValue()); } t.transform(source, r); } catch (javax.xml.transform.TransformerConfigurationException e) { throw new ConfigurationException(e); } catch (javax.xml.transform.TransformerException e) { throw new XMLUnitException(e); } } Transformation();  Transformation(Source s); void setSource(Source s); void setStylesheet(Source s); void addOutputProperty(String name, String value); void clearOutputProperties(); void addParameter(String name, Object value); void clearParameters(); void setFactory(TransformerFactory f); void setURIResolver(URIResolver r); void setErrorListener(ErrorListener l); void transformTo(Result r); String transformToString(); Document transformToDocument();  }