git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198231
13f79535-47bb-0310-9956-
ffa450edef68
} catch (TransformerException e) {
throw new RuntimeException("XPath evaluation failed: " + e.getMessage());
}
- if (!expected.equals(res.str())) {
+ String actual = res.str(); //Second str() seems to fail. D'oh!
+ if (!expected.equals(actual)) {
throw new RuntimeException(
"Expected XPath expression to evaluate to '" + expected + "', but got '"
- + res + "' (" + this + ")");
+ + actual + "' (" + this + ")");
}
}