Search in sources :

Example 1 with GroupByStepNode

use of org.pentaho.metaverse.frames.GroupByStepNode in project pentaho-metaverse by pentaho.

the class MetaverseValidationIT method testGroupByStep.

@Test
public void testGroupByStep() throws Exception {
    GroupByStepNode groupByStepNode = root.getGroupByStepNode();
    assertNotNull(groupByStepNode);
    GroupByMeta meta = (GroupByMeta) getStepMeta(groupByStepNode);
    int countUses = getIterableSize(groupByStepNode.getStreamFieldNodesUses());
    int expectedUsesLinksCount = meta.getSubjectField().length + meta.getGroupField().length;
    assertEquals(expectedUsesLinksCount, countUses);
}
Also used : GroupByMeta(org.pentaho.di.trans.steps.groupby.GroupByMeta) GroupByStepNode(org.pentaho.metaverse.frames.GroupByStepNode) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 GroupByMeta (org.pentaho.di.trans.steps.groupby.GroupByMeta)1 GroupByStepNode (org.pentaho.metaverse.frames.GroupByStepNode)1