@Test public void previous_returnsProperItem() { SqlPart sqlPart = mock(SqlPart.class); SelectFromImpl from = new SelectFromImpl("my_table", sqlPart); SqlPart result = from.previous(); assertThat(result, is(sqlPart)); }
@Nullable @Override public SqlPart previous() { return mPrevious; }
SelectFromImpl extends BaseFinishedSelectStatement implements SelectFrom { @Nullable @Override public SqlPart previous() { return mPrevious; } }
SelectFromImpl extends BaseFinishedSelectStatement implements SelectFrom { @Nullable @Override public SqlPart previous() { return mPrevious; } SelectFromImpl(@NotNull final String tableName, @NotNull final SqlPart previous); }
SelectFromImpl extends BaseFinishedSelectStatement implements SelectFrom { @Nullable @Override public SqlPart previous() { return mPrevious; } 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 { @Nullable @Override public SqlPart previous() { return mPrevious; } 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();  }