commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/jexl/src/test/org/apache/commons/jexl JexlTest.java
Date Tue, 24 Aug 2004 05:03:13 GMT
dion        2004/08/23 22:03:13

  Modified:    jexl/src/test/org/apache/commons/jexl JexlTest.java
  Log:
  Ensure getSize() method works
  
  Revision  Changes    Path
  1.59      +5 -1      jakarta-commons/jexl/src/test/org/apache/commons/jexl/JexlTest.java
  
  Index: JexlTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jexl/src/test/org/apache/commons/jexl/JexlTest.java,v
  retrieving revision 1.58
  retrieving revision 1.59
  diff -u -r1.58 -r1.59
  --- JexlTest.java	24 Aug 2004 02:22:12 -0000	1.58
  +++ JexlTest.java	24 Aug 2004 05:03:13 -0000	1.59
  @@ -303,10 +303,14 @@
           JexlContext jc = JexlHelper.createContext();
   
           jc.getVars().put("map", Collections.singletonMap( "size", "cheese"));
  +        jc.getVars().put("foo", new Foo());
   
           assertExpression(jc, "map['size']", "cheese");
   // PR - unsure whether or not we should support map.size or force usage of the above 'escaped'
version        
   //        assertExpression(jc, "map.size", "cheese");
  +        assertExpression(jc, "foo.getSize()", new Integer(22));
  +        // failing assertion for size property
  +        //assertExpression(jc, "foo.size", new Integer(22));
       }
   
       /**
  
  
  

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


Mime
View raw message