commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jexl/src/test/org/apache/commons/jexl JexlTest.java
Date Sat, 26 Oct 2002 09:14:47 GMT
jstrachan    2002/10/26 02:14:47

  Modified:    jexl/src/test/org/apache/commons/jexl JexlTest.java
  Log:
  Added another failing test case for Jexl.
  
  Revision  Changes    Path
  1.22      +15 -1     jakarta-commons-sandbox/jexl/src/test/org/apache/commons/jexl/JexlTest.java
  
  Index: JexlTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jexl/src/test/org/apache/commons/jexl/JexlTest.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- JexlTest.java	10 Oct 2002 15:44:23 -0000	1.21
  +++ JexlTest.java	26 Oct 2002 09:14:46 -0000	1.22
  @@ -446,6 +446,20 @@
           assertExpression(jc, "list.get(list.size() - 1)", "5");
       }
   
  +    /**
  +      *  test some String method calls
  +      */
  +    public void testStringMethods()
  +         throws Exception
  +    {
  +        JexlContext jc = JexlHelper.createContext();
  +
  +        jc.getVars().put("foo", "abcdef");
  +        
  +        assertExpression(jc, "foo.substring(3)", "def");
  +        assertExpression(jc, "foo.substring(0,foo.length()-3)", "abc");
  +    }
  +
   
   
       /**
  
  
  

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


Mime
View raw message