Author: sebb Date: Mon Jan 20 20:13:44 2014 New Revision: 1559823 URL: http://svn.apache.org/r1559823 Log: Document why Integer is used here
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=1559823&r1=1559822&r2=1559823&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 20:13:44 2014 @@ -73,7 +73,7 @@ public class JSEvaluatorTest { private static final TestItem[] SIMPLE_EXPRESSIONS = { new TestItem("'FIB: ' + (1 + 1 + 2 + 3 + 5)",new String("FIB: 12")), - new TestItem("1 + 1 + 2 + 3 + 5", new Integer(12)), + new TestItem("1 + 1 + 2 + 3 + 5", new Integer(12)), // Force comparison using intValue new TestItem("1.1 + 1.1 + 2.1 + 3.1 + 5.1", new Double(12.5)), new TestItem("(1 + 1 + 2 + 3 + 5) == 12", new Boolean(true)), new TestItem("(1 + 1 + 2 + 3 + 5) == 13", new Boolean(false)),