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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to