commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r799925 - /commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/scripting/JexlScriptEngineTest.java
Date Sat, 01 Aug 2009 21:01:52 GMT
Author: sebb
Date: Sat Aug  1 21:01:52 2009
New Revision: 799925

URL: http://svn.apache.org/viewvc?rev=799925&view=rev
Log:
Minor tidyup

Modified:
    commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/scripting/JexlScriptEngineTest.java

Modified: commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/scripting/JexlScriptEngineTest.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/scripting/JexlScriptEngineTest.java?rev=799925&r1=799924&r2=799925&view=diff
==============================================================================
--- commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/scripting/JexlScriptEngineTest.java
(original)
+++ commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/scripting/JexlScriptEngineTest.java
Sat Aug  1 21:01:52 2009
@@ -23,8 +23,6 @@
 
 import javax.script.ScriptEngine;
 import javax.script.ScriptEngineManager;
-import javax.script.ScriptException;
-
 import junit.framework.TestCase;
 
 public class JexlScriptEngineTest extends TestCase {
@@ -116,7 +114,7 @@
         assertNull(engine.get("this.is.a.test"));
         assertEquals(Boolean.TRUE, engine.eval("empty(this.is.a.test)"));
         final Object mymap = engine.eval("testmap=[ 'key1' => 'value1', 'key2' => 'value2'
]");
-        assertTrue(mymap instanceof Map);
-        assertEquals(2,((Map)mymap).size());
+        assertTrue(mymap instanceof Map<?, ?>);
+        assertEquals(2,((Map<?, ?>)mymap).size());
     }
 }



Mime
View raw message