jeremias 2005/01/06 01:11:59 Modified: test/java/org/apache/fop/layoutengine EvalCheck.java Log: XObject.str() fails the second time it is called. Makes debugging difficult. Get the result string early. Revision Changes Path 1.2 +4 -3 xml-fop/test/java/org/apache/fop/layoutengine/EvalCheck.java Index: EvalCheck.java =================================================================== RCS file: /home/cvs/xml-fop/test/java/org/apache/fop/layoutengine/EvalCheck.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- EvalCheck.java 6 Jan 2005 08:39:19 -0000 1.1 +++ EvalCheck.java 6 Jan 2005 09:11:59 -0000 1.2 @@ -63,10 +63,11 @@ } 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 + ")"); } }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]