You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2006/09/26 14:52:15 UTC

svn commit: r450035 - /jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/JexlTest.java

Author: dion
Date: Tue Sep 26 05:52:12 2006
New Revision: 450035

URL: http://svn.apache.org/viewvc?view=rev&rev=450035
Log:
Fix jdk1.3 only code that had crept into the tests

Modified:
    jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/JexlTest.java

Modified: jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/JexlTest.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/JexlTest.java?view=diff&rev=450035&r1=450034&r2=450035
==============================================================================
--- jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/JexlTest.java (original)
+++ jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/JexlTest.java Tue Sep 26 05:52:12 2006
@@ -327,8 +327,9 @@
     public void testSizeAsProperty() throws Exception
     {
         JexlContext jc = JexlHelper.createContext();
-
-        jc.getVars().put("map", Collections.singletonMap( "size", "cheese"));
+        Map map = new HashMap();
+        map.put("size", "cheese");
+        jc.getVars().put("map", map);
         jc.getVars().put("foo", new Foo());
 
         assertExpression(jc, "map['size']", "cheese");
@@ -751,7 +752,8 @@
     public void testEmptySubListOfMap() throws Exception
     {
         JexlContext jc = JexlHelper.createContext();
-        Map m = Collections.singletonMap("aList", Collections.EMPTY_LIST);
+        Map m = new HashMap();
+        m.put("aList", new ArrayList());
 
         jc.getVars().put( "aMap", m );
 



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