public final class XMLAssertEx
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
XMLAssertEx() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertXMLIdentical(org.xml.sax.InputSource control,
org.xml.sax.InputSource test,
boolean entityReferencesExpanded) |
static void |
assertXMLIdentical(java.net.URL control,
java.io.InputStream test,
boolean entityReferencesExpanded)
Asserts that the two documents are identical.
|
private static org.w3c.dom.Document |
parse(org.xml.sax.InputSource is,
boolean expandEntityReferences) |
private static void |
replaceEntityReferences(org.w3c.dom.Node node) |
private static org.w3c.dom.Document parse(org.xml.sax.InputSource is,
boolean expandEntityReferences)
throws java.lang.Exception
java.lang.Exceptionprivate static void replaceEntityReferences(org.w3c.dom.Node node)
public static void assertXMLIdentical(java.net.URL control,
java.io.InputStream test,
boolean entityReferencesExpanded)
throws java.lang.Exception
control - the control (expected) documenttest - the test (actual) document; this document is parsed any references to external
entities are resolved in the same way as for the control documententityReferencesExpanded - indicates whether in the test document, entity references have been expandedjava.lang.Exceptionpublic static void assertXMLIdentical(org.xml.sax.InputSource control,
org.xml.sax.InputSource test,
boolean entityReferencesExpanded)
throws java.lang.Exception
java.lang.Exception