112113114115116117118119120121122
if (expectedSize != results.size()) { log(debug, " ## FAILED"); log(debug, " ## xpath: " + xpath + " = " + xpath.debug()); Iterator resultIter = results.iterator(); while (resultIter.hasNext()) { log(debug, " --> " + resultIter.next());
166167168169170171172173174175176
if (!expected.equals(result)) { log(debug, " ## FAILED"); log(debug, " ## xpath: " + xpath + " = " + xpath.debug()); } assertEquals(xpathStr, expected, result); assertExprGetTextIdempotent(xpath);
846847848849850851852853854855856
public void testDebug() throws JaxenException { BaseXPath xpath = new DOMXPath("/b/c"); assertEquals( "[(DefaultXPath): [(DefaultAbsoluteLocationPath): [(DefaultNameStep): b]/[(DefaultNameStep): c]]]", xpath.debug() ); } public void testGetRootExpr() throws JaxenException {
845846847848849850851852853854855
165166167168169170171172173174175
if (!expected.equals(result)) { log(debug, " ## FAILED"); log(debug, " ## xpath: " + xpath + " = " + xpath.debug()); } assertEquals(xpathStr, expected, result); }