Search in sources :

Example 1 with GroupBy

use of org.teiid.language.GroupBy in project teiid by teiid.

the class TestGroupByImpl method testGetElements.

public void testGetElements() throws Exception {
    GroupBy gb = example();
    assertNotNull(gb.getElements());
    assertEquals(4, gb.getElements().size());
    for (Iterator i = gb.getElements().iterator(); i.hasNext(); ) {
        assertTrue(i.next() instanceof ColumnReference);
    }
}
Also used : GroupBy(org.teiid.language.GroupBy) Iterator(java.util.Iterator) ColumnReference(org.teiid.language.ColumnReference)

Aggregations

Iterator (java.util.Iterator)1 ColumnReference (org.teiid.language.ColumnReference)1 GroupBy (org.teiid.language.GroupBy)1