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 Fri, 20 Aug 2004 08:05:28 GMT
dion        2004/08/20 01:05:28

  Modified:    jexl/src/test/org/apache/commons/jexl JexlTest.java
  Log:
  Use assertExpression more often
  
  Revision  Changes    Path
  1.53      +3 -6      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.52
  retrieving revision 1.53
  diff -u -r1.52 -r1.53
  --- JexlTest.java	20 Aug 2004 08:04:37 -0000	1.52
  +++ JexlTest.java	20 Aug 2004 08:05:28 -0000	1.53
  @@ -548,14 +548,11 @@
       public void testVariableNames()
            throws Exception
       {
  -        Expression e = ExpressionFactory.createExpression("foo_bar");
           JexlContext jc = JexlHelper.createContext();
   
  -
           jc.getVars().put("foo_bar", "123" );
  -        Object o = e.evaluate(jc);
  -
  -        assertEquals("o incorrect", "123", o);
  +        
  +        assertExpression(jc, "foo_bar", "123");
       }
   
       /**
  
  
  

---------------------------------------------------------------------
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