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/jelly/src/test/org/apache/commons/jelly/expression TestExpressions.java
Date Sun, 29 Aug 2004 13:25:42 GMT
dion        2004/08/29 06:25:42

  Modified:    jelly/src/test/org/apache/commons/jelly/expression
                        TestExpressions.java
  Log:
  Add some more stuff that should work and comment out known issues
  
  Revision  Changes    Path
  1.13      +13 -14    jakarta-commons/jelly/src/test/org/apache/commons/jelly/expression/TestExpressions.java
  
  Index: TestExpressions.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jelly/src/test/org/apache/commons/jelly/expression/TestExpressions.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- TestExpressions.java	29 Aug 2004 11:47:53 -0000	1.12
  +++ TestExpressions.java	29 Aug 2004 13:25:42 -0000	1.13
  @@ -87,35 +87,34 @@
           assertExpression("${!d}", Boolean.TRUE);
       }
       
  -    // ##### re-enable this line once the Jexl sub-resolver work is complete!
  -    public void DISABLED_testNotConditionsWithDot() throws Exception {
  +    public void testNotConditionsWithDot() throws Exception {
  +        // ##### re-enable commented out lines once the Jexl sub-resolver work is complete!
           context.setVariable("x.a", Boolean.TRUE);
           context.setVariable("x.b", Boolean.FALSE);
           context.setVariable("x.c", "true");
           context.setVariable("x.d", "false");
           
           assertExpression("${x.a}", Boolean.TRUE);
  -        assertExpression("${!x.a}", Boolean.FALSE);
  +        //assertExpression("${!x.a}", Boolean.FALSE);
           assertExpression("${x.b}", Boolean.FALSE);
  -        assertExpression("${!x.b}", Boolean.TRUE);
  +        //assertExpression("${!x.b}", Boolean.TRUE);
           
           assertExpression("${x.c}", "true");
  -        assertExpression("${!x.c}", Boolean.FALSE);
  +        //assertExpression("${!x.c}", Boolean.FALSE);
           assertExpression("${x.d}", "false");
  -        assertExpression("${!x.d}", Boolean.TRUE);
  +        //assertExpression("${!x.d}", Boolean.TRUE);
       }
       
  -    // ##### re-enable this line once the Jexl sub-resolver work is complete!
  -    public void DISABLED_testNull() throws Exception {
  +    public void testNull() throws Exception {
  +        // ##### re-enable commented out lines once the Jexl sub-resolver work is complete!
           context.setVariable("something.blank", "");
           context.setVariable("something.ok", "cheese");
           
  -        
  -        assertExpression("${something.blank.length() == 0}", Boolean.TRUE);
  -        assertExpression("${something.blank == ''}", Boolean.TRUE);
  -        assertExpression("${something.ok != null}", Boolean.TRUE);
  -        assertExpression("${something.ok != ''}", Boolean.TRUE);
  -        assertExpression("${something.null != ''}", Boolean.FALSE);
  +        //assertExpression("${something.blank.length() == 0}", Boolean.TRUE);
  +        //assertExpression("${something.blank == ''}", Boolean.TRUE);
  +        //assertExpression("${something.ok != null}", Boolean.TRUE);
  +        //assertExpression("${something.ok != ''}", Boolean.TRUE);
  +        //assertExpression("${something.null != ''}", Boolean.FALSE);
           assertExpression("${unknown == null}", 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