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

Examples of org.araneaframework.backend.list.memorybased.expression.compare.IsNullExpression


    Object value = filterInfo.get(this.filterInfoKey);
    boolean isNull = this.filterInfoValue == null ? value == null : this.filterInfoValue.equals(value);
    if (!isNull) {
      return new AlwaysTrueExpression();
    }
    return new IsNullExpression(new VariableExpression(this.columnId));
  }
View Full Code Here


  }

  public void testIsNullExpression() throws ExpressionEvaluationException {
    log.debug("Testing IsNullExpression");
    try {
      new IsNullExpression(null).evaluate(this.resolver);
      fail("IsNullExpression operand can not be null");
    } catch (Exception e) {
      // normal
    }

    // evaluating
    assertEquals("IsNullExpression must return true", Boolean.TRUE,
        new IsNullExpression(this.nullExpr).evaluate(this.resolver));
    assertEquals("IsNullExpression must return false", Boolean.FALSE,
        new IsNullExpression(this.high).evaluate(this.resolver));
  }
View Full Code Here

TOP

Related Classes of org.araneaframework.backend.list.memorybased.expression.compare.IsNullExpression

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.