Package org.araneaframework.backend.list.memorybased.expression.logical

Examples of org.araneaframework.backend.list.memorybased.expression.logical.NotExpression


  private ListFilter filter;
  public NotFilter(ListFilter filter) {
    this.filter = filter;
  }
  public Expression buildExpression(Map data) {
    return new NotExpression(this.filter.buildExpression(data));
  }
View Full Code Here


  }

  public void testNotExpression() throws ExpressionEvaluationException {
    log.debug("Testing NotExpression");
    try {
      new NotExpression(null).evaluate(this.resolver);
      fail("NotExpression must throw an exception");
    } catch (Exception e) {
      // normal
    }
    try {
      new NotExpression(this.notBoolExpr).evaluate(this.resolver);
      fail("NotExpression must throw an exception");
    } catch (Exception e) {
      // normal
    }

    assertEquals("NotExpression must return false", Boolean.FALSE,
        new NotExpression(this.trueExpr).evaluate(this.resolver));
    assertEquals("NotExpression must return true", Boolean.TRUE,
        new NotExpression(this.falseExpr).evaluate(this.resolver));
  }
View Full Code Here

TOP

Related Classes of org.araneaframework.backend.list.memorybased.expression.logical.NotExpression

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.