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:01:17 GMT
dion        2004/08/20 01:01:17

  Modified:    jexl/src/test/org/apache/commons/jexl JexlTest.java
  Log:
  Use assertExpression more often
  
  Revision  Changes    Path
  1.51      +1 -9      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.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- JexlTest.java	20 Aug 2004 07:59:47 -0000	1.50
  +++ JexlTest.java	20 Aug 2004 08:01:16 -0000	1.51
  @@ -468,8 +468,6 @@
           assertExpression(jc, "foo.indexOf('bar') < 0", Boolean.TRUE);
       }
   
  -
  -
       /**
         *  test some null conditions
         */
  @@ -478,12 +476,6 @@
       {
           JexlContext jc = JexlHelper.createContext();
           jc.getVars().put("bar", new Integer(2) );
  -
  -        Expression e = ExpressionFactory.createExpression("empty foo");
  -        Object o = e.evaluate(jc);
  -
  -        assertTrue("o not instanceof Boolean", o instanceof Boolean);
  -        assertEquals("o incorrect", Boolean.TRUE, o);
   
           assertExpression(jc, "empty foo", Boolean.TRUE);
           assertExpression(jc, "bar == null", Boolean.FALSE);
  
  
  

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