Package de.cuioss.test.jsf.renderer.util
Class HtmlTreeAsserts
- java.lang.Object
-
- de.cuioss.test.jsf.renderer.util.HtmlTreeAsserts
-
public final class HtmlTreeAsserts extends Object
Provides asserts forDocumentand Jdom elements.- Author:
- Oliver Wolff
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidassertAttributeEquals(org.jdom2.Attribute expected, org.jdom2.Attribute actual, String pointer)Compares two instances ofAttributefor equality.static voidassertElementEquals(org.jdom2.Element expected, org.jdom2.Element actual, String pointer)Compares two instances ofElementfor equality.static voidassertElementWithChildrenEquals(org.jdom2.Element expected, org.jdom2.Element actual, String pointer)Compares two instances ofElementfor equality.static voidassertHtmlTreeEquals(org.jdom2.Document expected, org.jdom2.Document actual)Compares two instances ofDocumentfor equality.
-
-
-
Method Detail
-
assertHtmlTreeEquals
public static void assertHtmlTreeEquals(org.jdom2.Document expected, org.jdom2.Document actual)
Compares two instances ofDocumentfor equality. Attribute order is not relevant, but element order is.- Parameters:
expected- expected valueactual- the value to check againstexpected
-
assertElementWithChildrenEquals
public static void assertElementWithChildrenEquals(org.jdom2.Element expected, org.jdom2.Element actual, String pointer)
Compares two instances ofElementfor equality. Attribute order is not relevant.It checks the children recursively as well.- Parameters:
expected- expected valueactual- the value to check againstexpectedpointer- String based path identifier
-
assertElementEquals
public static void assertElementEquals(org.jdom2.Element expected, org.jdom2.Element actual, String pointer)
Compares two instances ofElementfor equality. Attribute order is not relevant. It checks the name of the elements and the attributes, not the children- Parameters:
expected- expected valueactual- actual the value to check againstexpectedpointer- String based path identifier
-
assertAttributeEquals
public static void assertAttributeEquals(org.jdom2.Attribute expected, org.jdom2.Attribute actual, String pointer)
Compares two instances ofAttributefor equality.- Parameters:
expected- expected valueactual- the value to check againstexpectedpointer- String based path identifier
-
-