commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r732406 - /commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/env/javascript/JSEvaluatorTest.java
Date Wed, 07 Jan 2009 17:28:10 GMT
Author: sebb
Date: Wed Jan  7 09:28:10 2009
New Revision: 732406

URL: http://svn.apache.org/viewvc?rev=732406&view=rev
Log:
Fix boxing warnings

Modified:
    commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/env/javascript/JSEvaluatorTest.java

Modified: commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/env/javascript/JSEvaluatorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/env/javascript/JSEvaluatorTest.java?rev=732406&r1=732405&r2=732406&view=diff
==============================================================================
--- commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/env/javascript/JSEvaluatorTest.java
(original)
+++ commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/env/javascript/JSEvaluatorTest.java
Wed Jan  7 09:28:10 2009
@@ -212,11 +212,11 @@
      *
      */
     public void testVarExpressions() throws Exception {
-        context.set("fibonacci",12);
+        context.set("fibonacci",Integer.valueOf(12));
 
         for (TestItem item: VAR_EXPRESSIONS) {
             assertNotNull(context.get("fibonacci"));
-            assertEquals (12,context.get("fibonacci"));
+            assertEquals (Integer.valueOf(12),context.get("fibonacci"));
             assertEquals ("Invalid result: " + item.expression,
                           item.result,
                           evaluator.eval(context,item.expression));
@@ -299,9 +299,9 @@
      *
      */
     public void testScriptFunctions() throws Exception {
-        context.set("FIVE",5);
-        assertEquals(5,context.get("FIVE"));
-        assertEquals("Invalid function result",120.0,evaluator.eval(context,FUNCTION));
+        context.set("FIVE",Integer.valueOf(5));
+        assertEquals(Integer.valueOf(5),context.get("FIVE"));
+        assertEquals("Invalid function result",Double.valueOf(120.0),evaluator.eval(context,FUNCTION));
     }
 
 



Mime
View raw message