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 Wed, 18 Aug 2004 07:03:35 GMT
dion        2004/08/18 00:03:35

  Modified:    jexl/src/test/org/apache/commons/jexl JexlTest.java
  Log:
  use helper
  
  Revision  Changes    Path
  1.41      +2 -4      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.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- JexlTest.java	18 Aug 2004 06:40:01 -0000	1.40
  +++ JexlTest.java	18 Aug 2004 07:03:34 -0000	1.41
  @@ -1095,9 +1095,7 @@
       {
           JexlContext jc = JexlHelper.createContext();
           jc.getVars().put("aBool", Boolean.FALSE);
  -        Expression expr = ExpressionFactory.createExpression("aBool.valueOf('true')");
  -        Boolean result = (Boolean)expr.evaluate(jc);
  -        assertEquals("Static method evaluation failed: " + result, Boolean.TRUE, result);
  +    	assertExpression(jc, "aBool.valueOf('true')", Boolean.TRUE);
       }
       
       /**
  
  
  

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