@Test void commonTableExpressions() { SelectStatement<Integer> sut = new SelectStatement<>(createScope(), TypeToken.of(Integer.class), from, rowMapper, projection); sut.addCommonTableExpression(cte); Stream<CommonTableExpression<?>> result = sut.commonTableExpressions(); assertThat(result.collect(toList()), contains(cte)); }
public Stream<CommonTableExpression<?>> commonTableExpressions() { return commonTableExpressions.stream(); }
SelectStatement { public Stream<CommonTableExpression<?>> commonTableExpressions() { return commonTableExpressions.stream(); } }
SelectStatement { public Stream<CommonTableExpression<?>> commonTableExpressions() { return commonTableExpressions.stream(); } SelectStatement(Scope scope, TypeToken<RT> rowType, From from, RowMapper<RT> rowMapper, Projection projection); }
SelectStatement { public Stream<CommonTableExpression<?>> commonTableExpressions() { return commonTableExpressions.stream(); } SelectStatement(Scope scope, TypeToken<RT> rowType, From from, RowMapper<RT> rowMapper, Projection projection); TypeToken<RT> rowType(); Stream<CommonTableExpression<?>> commonTableExpressions(); }
SelectStatement { public Stream<CommonTableExpression<?>> commonTableExpressions() { return commonTableExpressions.stream(); } SelectStatement(Scope scope, TypeToken<RT> rowType, From from, RowMapper<RT> rowMapper, Projection projection); TypeToken<RT> rowType(); Stream<CommonTableExpression<?>> commonTableExpressions();  }