You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by se...@apache.org on 2010/05/22 14:07:02 UTC

svn commit: r947286 - in /jakarta/bsf/branches/bsf3.x/testing/jexl: pom.xml src/test/java/org/apache/bsf/testing/jexl/JexlTestCase.java

Author: sebb
Date: Sat May 22 12:07:02 2010
New Revision: 947286

URL: http://svn.apache.org/viewvc?rev=947286&view=rev
Log:
Use Jexl2 as test subject (has its own engine/factory)

Modified:
    jakarta/bsf/branches/bsf3.x/testing/jexl/pom.xml
    jakarta/bsf/branches/bsf3.x/testing/jexl/src/test/java/org/apache/bsf/testing/jexl/JexlTestCase.java

Modified: jakarta/bsf/branches/bsf3.x/testing/jexl/pom.xml
URL: http://svn.apache.org/viewvc/jakarta/bsf/branches/bsf3.x/testing/jexl/pom.xml?rev=947286&r1=947285&r2=947286&view=diff
==============================================================================
--- jakarta/bsf/branches/bsf3.x/testing/jexl/pom.xml (original)
+++ jakarta/bsf/branches/bsf3.x/testing/jexl/pom.xml Sat May 22 12:07:02 2010
@@ -29,8 +29,8 @@
     <packaging>jar</packaging>
     <groupId>org.apache.bsf.testing</groupId>
     <artifactId>bsf-testing-jexl</artifactId>
-    <name>Apache BSF testing for Jexl</name>
-    <description>Apache BSF testing for Jexl</description>
+    <name>Apache BSF testing using Jexl2</name>
+    <description>Apache BSF testing using Jexl2</description>
 
     <!-- We don't want to deploy any of the test modules -->
     <properties>
@@ -40,14 +40,14 @@
     <dependencies>
         <dependency>
             <groupId>org.apache.bsf</groupId>
-            <artifactId>bsf-all</artifactId>
+            <artifactId>bsf-api</artifactId>
             <version>${bsf.version}</version>
             <scope>compile</scope>
         </dependency>
         <dependency>
-            <groupId>commons-jexl</groupId>
+            <groupId>org.apache.commons</groupId>
             <artifactId>commons-jexl</artifactId>
-            <version>1.1</version>
+            <version>2.0.1</version>
             <scope>test</scope>
         </dependency>
         <dependency>

Modified: jakarta/bsf/branches/bsf3.x/testing/jexl/src/test/java/org/apache/bsf/testing/jexl/JexlTestCase.java
URL: http://svn.apache.org/viewvc/jakarta/bsf/branches/bsf3.x/testing/jexl/src/test/java/org/apache/bsf/testing/jexl/JexlTestCase.java?rev=947286&r1=947285&r2=947286&view=diff
==============================================================================
--- jakarta/bsf/branches/bsf3.x/testing/jexl/src/test/java/org/apache/bsf/testing/jexl/JexlTestCase.java (original)
+++ jakarta/bsf/branches/bsf3.x/testing/jexl/src/test/java/org/apache/bsf/testing/jexl/JexlTestCase.java Sat May 22 12:07:02 2010
@@ -26,7 +26,7 @@ import javax.script.ScriptException;
 import junit.framework.TestCase;
 
 /**
- * Simple testcase to verify basic Jexl functionality
+ * Simple testcase to verify basic Jexl2 functionality
  */
 public class JexlTestCase extends TestCase {
 
@@ -35,8 +35,7 @@ public class JexlTestCase extends TestCa
 		ScriptEngine engine = manager.getEngineByName("jexl");
 		assertNotNull("Should find an engine",engine);
         assertTrue("engine should be compilable",engine instanceof Compilable);
-		assertEquals("Should be 579",new Long(579),engine.eval("123+456;"));
-        //assertEquals("Should still be 579",new Long(579),engine.eval("999;123+456"));
+		assertEquals("Should be 579",new Integer(579),engine.eval("123+456;"));
 	}
 
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org