Examples of AggregateSymbol


Examples of org.teiid.query.sql.symbol.AggregateSymbol

 
   
  // ################################## ACTUAL TESTS ################################
 
  public void testParser1() {
    AggregateSymbol as = new AggregateSymbol("count", NonReserved.COUNT, false, sampleElement()); //$NON-NLS-1$
    helpParser(as, "COUNT(m.g.c)"); //$NON-NLS-1$
  }
View Full Code Here

Examples of org.teiid.query.sql.symbol.AggregateSymbol

    AggregateSymbol as = new AggregateSymbol("count", NonReserved.COUNT, false, sampleElement()); //$NON-NLS-1$
    helpParser(as, "COUNT(m.g.c)"); //$NON-NLS-1$
  }

  public void testParser2() {
    AggregateSymbol as = new AggregateSymbol("count", NonReserved.COUNT, true, sampleElement()); //$NON-NLS-1$
    helpParser(as, "COUNT(DISTINCT m.g.c)"); //$NON-NLS-1$
  }
View Full Code Here

Examples of org.teiid.query.sql.symbol.AggregateSymbol

    AggregateSymbol as = new AggregateSymbol("count", NonReserved.COUNT, true, sampleElement()); //$NON-NLS-1$
    helpParser(as, "COUNT(DISTINCT m.g.c)"); //$NON-NLS-1$
  }

  public void testParser3() {
    AggregateSymbol as = new AggregateSymbol("x", NonReserved.MIN, false, sampleConstant()); //$NON-NLS-1$
    helpParser(as, "MIN(5)"); //$NON-NLS-1$
  }
View Full Code Here

Examples of org.teiid.query.sql.symbol.AggregateSymbol

    AggregateSymbol as = new AggregateSymbol("x", NonReserved.MIN, false, sampleConstant()); //$NON-NLS-1$
    helpParser(as, "MIN(5)"); //$NON-NLS-1$
  }

  public void testParser4() {
    AggregateSymbol as = new AggregateSymbol("x", NonReserved.MAX, false, sampleFunction()); //$NON-NLS-1$
    helpParser(as, "MAX((m.g.c + 5))"); //$NON-NLS-1$
  }
View Full Code Here

Examples of org.teiid.query.sql.symbol.AggregateSymbol

    AggregateSymbol as = new AggregateSymbol("x", NonReserved.MAX, false, sampleFunction()); //$NON-NLS-1$
    helpParser(as, "MAX((m.g.c + 5))"); //$NON-NLS-1$
  }

  public void testParser5() {
    AggregateSymbol as = new AggregateSymbol("x", NonReserved.COUNT, false, null); //$NON-NLS-1$
    helpParser(as, "COUNT(*)"); //$NON-NLS-1$
  }
View Full Code Here

Examples of org.teiid.query.sql.symbol.AggregateSymbol

    AggregateSymbol as = new AggregateSymbol("x", NonReserved.COUNT, false, null); //$NON-NLS-1$
    helpParser(as, "COUNT(*)"); //$NON-NLS-1$
  }
   
  public void testEquals1() {
    AggregateSymbol as = new AggregateSymbol("x", NonReserved.COUNT, true, sampleElement()); //$NON-NLS-1$
    helpEquals(as, as, true);   
  }
View Full Code Here

Examples of org.teiid.query.sql.symbol.AggregateSymbol

    AggregateSymbol as = new AggregateSymbol("x", NonReserved.COUNT, true, sampleElement()); //$NON-NLS-1$
    helpEquals(as, as, true);   
  }

  public void testEquals2() {
    AggregateSymbol as1 = new AggregateSymbol("x", NonReserved.COUNT, true, sampleElement()); //$NON-NLS-1$
    AggregateSymbol as2 = (AggregateSymbol) as1.clone();
    helpEquals(as1, as2, true);   
  }
View Full Code Here

Examples of org.teiid.query.sql.symbol.AggregateSymbol

    helpEquals(as1, as2, true);   
  }

    //just changing the name of an aggregatesymbol doesn't matter
  public void testEquals3() {
    AggregateSymbol as1 = new AggregateSymbol("x", NonReserved.COUNT, true, sampleElement()); //$NON-NLS-1$
    AggregateSymbol as2 = new AggregateSymbol("y", NonReserved.COUNT, true, sampleElement()); //$NON-NLS-1$
    helpEquals(as1, as2, true);   
  }
View Full Code Here

Examples of org.teiid.query.sql.symbol.AggregateSymbol

    AggregateSymbol as2 = new AggregateSymbol("y", NonReserved.COUNT, true, sampleElement()); //$NON-NLS-1$
    helpEquals(as1, as2, true);   
  }
 
  public void testEquals4() {
    AggregateSymbol as1 = new AggregateSymbol("count", NonReserved.COUNT, false, null); //$NON-NLS-1$
    AggregateSymbol as2 = (AggregateSymbol) as1.clone();
    helpEquals(as1, as2, true);   
  }
View Full Code Here

Examples of org.teiid.query.sql.symbol.AggregateSymbol

    AggregateSymbol as2 = (AggregateSymbol) as1.clone();
    helpEquals(as1, as2, true);   
  }

  public void testSelfEquivalence(){
    AggregateSymbol test = new AggregateSymbol("x", NonReserved.COUNT, true, sampleElement()); //$NON-NLS-1$
    int equals = 0;
    UnitTestUtil.helpTestEquivalence(equals, test, test);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.