use of org.teiid.query.sql.symbol.AggregateSymbol in project teiid by teiid.
the class TestAggregateSymbol method testParser2.
public void testParser2() {
// $NON-NLS-1$
AggregateSymbol as = new AggregateSymbol(NonReserved.COUNT, true, sampleElement());
// $NON-NLS-1$
helpParser(as, "COUNT(DISTINCT m.g.c)");
}
use of org.teiid.query.sql.symbol.AggregateSymbol in project teiid by teiid.
the class TestAggregateSymbol method testEquivalence.
public void testEquivalence() {
// $NON-NLS-1$
AggregateSymbol test1 = new AggregateSymbol(NonReserved.COUNT, true, sampleElement());
// $NON-NLS-1$
AggregateSymbol test2 = new AggregateSymbol(NonReserved.COUNT, true, sampleElement());
int equals = 0;
UnitTestUtil.helpTestEquivalence(equals, test1, test2);
}
use of org.teiid.query.sql.symbol.AggregateSymbol in project teiid by teiid.
the class TestAggregateSymbol method testEquivalenceCountStar.
public void testEquivalenceCountStar() {
// $NON-NLS-1$
AggregateSymbol test1 = new AggregateSymbol(NonReserved.COUNT, false, null);
// $NON-NLS-1$
AggregateSymbol test2 = new AggregateSymbol(NonReserved.COUNT, false, null);
int equals = 0;
UnitTestUtil.helpTestEquivalence(equals, test1, test2);
}
use of org.teiid.query.sql.symbol.AggregateSymbol in project teiid by teiid.
the class TestAggregateSymbol method testEquals1.
public void testEquals1() {
// $NON-NLS-1$
AggregateSymbol as = new AggregateSymbol(NonReserved.COUNT, true, sampleElement());
helpEquals(as, as, true);
}
use of org.teiid.query.sql.symbol.AggregateSymbol in project teiid by teiid.
the class TestAggregateSymbol method testNonEquivalence.
public void testNonEquivalence() {
// $NON-NLS-1$
AggregateSymbol test1 = new AggregateSymbol(NonReserved.COUNT, true, sampleElement());
// $NON-NLS-1$
AggregateSymbol test2 = new AggregateSymbol(NonReserved.COUNT, true, sampleElement2());
int equals = -1;
UnitTestUtil.helpTestEquivalence(equals, test1, test2);
}
Aggregations