@Test public void previous_returnsProperItem() { SqlPart sqlPart = mock(SqlPart.class); OrderByImpl orderBy = new OrderByImpl(new String[] {"a"}, sqlPart); SqlPart result = orderBy.previous(); assertThat(result, is(sqlPart)); }
@Nullable @Override public SqlPart previous() { return mPrevious; }
OrderByImpl extends BaseFinishedSelectStatement implements OrderBy { @Nullable @Override public SqlPart previous() { return mPrevious; } }
OrderByImpl extends BaseFinishedSelectStatement implements OrderBy { @Nullable @Override public SqlPart previous() { return mPrevious; } OrderByImpl(@NotNull final String[] terms, @NotNull final SqlPart previous); }
OrderByImpl extends BaseFinishedSelectStatement implements OrderBy { @Nullable @Override public SqlPart previous() { return mPrevious; } OrderByImpl(@NotNull final String[] terms, @NotNull final SqlPart previous); @Override Limit limit(final long limit); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous(); }
OrderByImpl extends BaseFinishedSelectStatement implements OrderBy { @Nullable @Override public SqlPart previous() { return mPrevious; } OrderByImpl(@NotNull final String[] terms, @NotNull final SqlPart previous); @Override Limit limit(final long limit); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous();  }