@Test public void groupBy_returnsNotNullValue() { SelectFromImpl from = new SelectFromImpl("my_table", mock(SqlPart.class)); GroupBy result = from.groupBy("a"); assertThat(result, is(notNullValue())); }
@NotNull @Override public GroupBy groupBy(@NotNull final String expression) { return new GroupByImpl(expression, this); }
SelectFromImpl extends BaseFinishedSelectStatement implements SelectFrom { @NotNull @Override public GroupBy groupBy(@NotNull final String expression) { return new GroupByImpl(expression, this); } }
SelectFromImpl extends BaseFinishedSelectStatement implements SelectFrom { @NotNull @Override public GroupBy groupBy(@NotNull final String expression) { return new GroupByImpl(expression, this); } SelectFromImpl(@NotNull final String tableName, @NotNull final SqlPart previous); }
SelectFromImpl extends BaseFinishedSelectStatement implements SelectFrom { @NotNull @Override public GroupBy groupBy(@NotNull final String expression) { return new GroupByImpl(expression, this); } SelectFromImpl(@NotNull final String tableName, @NotNull final SqlPart previous); @NotNull @Override SelectWhere where(@NotNull final String expression, @NotNull final Object... arguments); @NotNull @Override GroupBy groupBy(@NotNull final String expression); @NotNull @Override OrderBy orderBy(@NotNull final String... terms); @NotNull @Override Limit limit(final long limit); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous(); }
SelectFromImpl extends BaseFinishedSelectStatement implements SelectFrom { @NotNull @Override public GroupBy groupBy(@NotNull final String expression) { return new GroupByImpl(expression, this); } SelectFromImpl(@NotNull final String tableName, @NotNull final SqlPart previous); @NotNull @Override SelectWhere where(@NotNull final String expression, @NotNull final Object... arguments); @NotNull @Override GroupBy groupBy(@NotNull final String expression); @NotNull @Override OrderBy orderBy(@NotNull final String... terms); @NotNull @Override Limit limit(final long limit); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous();  }