myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject svn commit: r1138252 - /myfaces/extensions/cdi/trunk/jse-modules/scripting-module/impl/src/test/java/org/apache/myfaces/extensions/cdi/scripting/test/impl/SimpleScriptingTest.java
Date Tue, 21 Jun 2011 23:52:39 GMT
Author: gpetracek
Date: Tue Jun 21 23:52:39 2011
New Revision: 1138252

URL: http://svn.apache.org/viewvc?rev=1138252&view=rev
Log:
workaround for junit issue

Modified:
    myfaces/extensions/cdi/trunk/jse-modules/scripting-module/impl/src/test/java/org/apache/myfaces/extensions/cdi/scripting/test/impl/SimpleScriptingTest.java

Modified: myfaces/extensions/cdi/trunk/jse-modules/scripting-module/impl/src/test/java/org/apache/myfaces/extensions/cdi/scripting/test/impl/SimpleScriptingTest.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/jse-modules/scripting-module/impl/src/test/java/org/apache/myfaces/extensions/cdi/scripting/test/impl/SimpleScriptingTest.java?rev=1138252&r1=1138251&r2=1138252&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/jse-modules/scripting-module/impl/src/test/java/org/apache/myfaces/extensions/cdi/scripting/test/impl/SimpleScriptingTest.java
(original)
+++ myfaces/extensions/cdi/trunk/jse-modules/scripting-module/impl/src/test/java/org/apache/myfaces/extensions/cdi/scripting/test/impl/SimpleScriptingTest.java
Tue Jun 21 23:52:39 2011
@@ -55,13 +55,13 @@ public class SimpleScriptingTest extends
     @Test
     public void testSimpleScriptEval()
     {
-        assertEquals(new Double(14), this.scriptExecutor.eval("10 + 4", Double.class));
+        assertEquals(new Double(14d), new Double(this.scriptExecutor.eval("10 + 4").toString()));
     }
 
     @Test
     public void testScriptBuilder()
     {
-        assertEquals(new Double(14), add(10d, 4d));
+        assertEquals(new Double(14d), new Double(add(10d, 4d)));
     }
 
     private Double add(Double a, Double b)
@@ -78,7 +78,7 @@ public class SimpleScriptingTest extends
     {
         try
         {
-            assertEquals(14d, this.scriptEngine.eval("10 + 4"));
+            assertEquals(new Double(14d), new Double(this.scriptEngine.eval("10 + 4").toString()));
         }
         catch (ScriptException e)
         {



Mime
View raw message