use of org.teiid.query.sql.symbol.AggregateSymbol in project teiid by teiid.
the class TestAggregateSymbol method testEquals2.
public void testEquals2() {
// $NON-NLS-1$
AggregateSymbol as1 = new AggregateSymbol(NonReserved.COUNT, true, sampleElement());
AggregateSymbol as2 = (AggregateSymbol) as1.clone();
helpEquals(as1, as2, true);
}
use of org.teiid.query.sql.symbol.AggregateSymbol in project teiid by teiid.
the class TestAggregateSymbol method testEquals4.
public void testEquals4() {
// $NON-NLS-1$
AggregateSymbol as1 = new AggregateSymbol(NonReserved.COUNT, false, null);
AggregateSymbol as2 = (AggregateSymbol) as1.clone();
helpEquals(as1, as2, true);
}
use of org.teiid.query.sql.symbol.AggregateSymbol in project teiid by teiid.
the class TestAggregateSymbol method testParser5.
public void testParser5() {
// $NON-NLS-1$
AggregateSymbol as = new AggregateSymbol(NonReserved.COUNT, false, null);
// $NON-NLS-1$
helpParser(as, "COUNT(*)");
}
use of org.teiid.query.sql.symbol.AggregateSymbol in project teiid by teiid.
the class TestAggregateSymbol method testNonEquivalence2.
public void testNonEquivalence2() {
// $NON-NLS-1$
AggregateSymbol test1 = new AggregateSymbol(NonReserved.MAX, true, sampleElement());
// $NON-NLS-1$
AggregateSymbol test2 = new AggregateSymbol(NonReserved.COUNT, true, sampleElement2());
int equals = -1;
UnitTestUtil.helpTestEquivalence(equals, test1, test2);
}
use of org.teiid.query.sql.symbol.AggregateSymbol in project teiid by teiid.
the class TestAggregateSymbol method testParser1.
// ################################## ACTUAL TESTS ################################
public void testParser1() {
// $NON-NLS-1$
AggregateSymbol as = new AggregateSymbol(NonReserved.COUNT, false, sampleElement());
// $NON-NLS-1$
helpParser(as, "COUNT(m.g.c)");
}
Aggregations