Package org.araneaframework.uilib.widgets.lists.tests.mock

Examples of org.araneaframework.uilib.widgets.lists.tests.mock.MockVariableResolver


 
  private Object testValue = "test_value";

  public void setUp() {
    this.builder = new StandardExpressionToSqlExprBuilder();
    this.builder.setMapper(new MockVariableResolver());
    this.builder.setConverter(new MockValueConverter());
  }
View Full Code Here


 
  private Value om;
  private Value tm;

  public void setUp() {
    this.resolver = new MockVariableResolver();
   
    this.tom = new MockValueExpression("Tom");
    this.jerry = new MockValueExpression("Jerry");
    this.om = new MockValueExpression("om");
    this.tm = new MockValueExpression("t.m");
View Full Code Here

  private Expression high;

  private Expression nullExpr;

  public void setUp() {
    this.resolver = new MockVariableResolver();
    this.low = new MockValueExpression(new Long(-10));
    this.low_copy = new MockValueExpression(new Long(-10));
    this.high = new MockValueExpression(new Long(10));
    this.nullExpr = new MockValueExpression(null);
  }
View Full Code Here

  private Expression part1expr;
  private Expression part2expr;
  private Expression part3expr;

  public void setUp() {
    this.resolver = new MockVariableResolver();
   
    this.part1expr = new MockValueExpression("part1");
    this.part2expr = new MockValueExpression("part2");
    this.part3expr = new MockValueExpression("part3");
  }
View Full Code Here

  private Expression trueExpr;
  private Expression falseExpr;
  private Expression notBoolExpr;

  public void setUp() {
    this.resolver = new MockVariableResolver();
   
    this.trueExpr = new MockValueExpression(Boolean.TRUE);
    this.falseExpr = new MockValueExpression(Boolean.FALSE);
    this.notBoolExpr = new MockValueExpression(new Long(0));
  }
View Full Code Here

  private static final Logger log = Logger.getLogger(ExpressionTests.class);

  private VariableResolver resolver;

  public void setUp() {
    this.resolver = new MockVariableResolver();
  }
View Full Code Here

    assertEquals("VariableExpression's name must be 'var1'", "var1",
        new VariableExpression("var1").getName());

    // evaluating
    assertEquals("VariableExpression must return Tom", "Tom",
        new VariableExpression("var").evaluate(new MockVariableResolver("var", "Tom")));
  }
View Full Code Here

TOP

Related Classes of org.araneaframework.uilib.widgets.lists.tests.mock.MockVariableResolver

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.