public static void assertXpathValuesEqual ( String controlXpath , Document controlDocument , String testXpath , Document testDocument ) throws XpathException { XpathEngine xpath = XMLUnit . newXpathEngine ( ) ; assertEquals ( xpath . evaluate ( controlXpath , controlDocument ) , xpath . evaluate ( testXpath , testDocument ) ) ; }
Assert that the evaluation of two Xpaths in two documents are equal