You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2014/01/20 19:23:57 UTC
svn commit: r1559800 -
/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/env/javascript/JSEvaluatorTest.java
Author: sebb
Date: Mon Jan 20 18:23:56 2014
New Revision: 1559800
URL: http://svn.apache.org/r1559800
Log:
Show what was evaluated
Modified:
commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/env/javascript/JSEvaluatorTest.java
Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/env/javascript/JSEvaluatorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/env/javascript/JSEvaluatorTest.java?rev=1559800&r1=1559799&r2=1559800&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/env/javascript/JSEvaluatorTest.java (original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/env/javascript/JSEvaluatorTest.java Mon Jan 20 18:23:56 2014
@@ -188,7 +188,9 @@ public class JSEvaluatorTest {
((Number) item.result).intValue(),
((Number) eval).intValue());
if (!(item.result instanceof Integer)) {
- System.err.println("Expected: " + item.result.getClass().getCanonicalName() + ", actual: Integer");
+ System.err.println("Evaluated: " + item.expression +
+ ". Expected: " + item.result.getClass().getCanonicalName()
+ + ", actual: Integer");
}
} else {
Assert.assertEquals("Invalid result: " + item.expression,