|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jelly.TagSupport org.apache.commons.jelly.xpath.XPathTagSupport org.apache.commons.jelly.tags.junit.AssertTagSupport org.apache.commons.jelly.tags.xmlunit.XMLUnitTagSupport org.apache.commons.jelly.tags.xmlunit.AssertDocumentsEqualTag
Compares two XML documents using XMLUnit (http://xmlunit.sourceforge.net/). If they are different an exception will be thrown.
Field Summary |
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
AssertDocumentsEqualTag()
|
Method Summary | |
protected org.dom4j.io.SAXReader |
createSAXReader()
Factory method to create a new SAXReader |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
|
void |
setActual(java.lang.Object actual)
Sets the actual XML document which is either a Document, String (of an URI), URI, Reader, or InputStream. |
void |
setExpected(java.lang.Object expected)
Sets the expected XML document which is either a Document, String (of an URI), URI, Reader, or InputStream. |
void |
setIgnoreWhitespace(boolean ignoreWhitespace)
Controls whether whitespace differences should be interpreted as differences or not. |
Methods inherited from class org.apache.commons.jelly.tags.xmlunit.XMLUnitTagSupport |
getSAXReader, parse, parseBody, setSAXReader |
Methods inherited from class org.apache.commons.jelly.tags.junit.AssertTagSupport |
fail, fail, failNotEquals |
Methods inherited from class org.apache.commons.jelly.xpath.XPathTagSupport |
getXPathContext |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AssertDocumentsEqualTag()
Method Detail |
public void doTag(org.apache.commons.jelly.XMLOutput output) throws org.apache.commons.jelly.JellyTagException
org.apache.commons.jelly.JellyTagException
public void setActual(java.lang.Object actual)
public void setExpected(java.lang.Object expected)
public void setIgnoreWhitespace(boolean ignoreWhitespace)
false
. Note that the
use of the trim
attribute is crucial here.
protected org.dom4j.io.SAXReader createSAXReader()
XMLUnitTagSupport
createSAXReader
in class XMLUnitTagSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |