@Test public void previous_returnsProperItem() { SqlPart sqlPart = mock(SqlPart.class); AsImpl as = new AsImpl(mock(FinishedSelectStatement.class), sqlPart); SqlPart result = as.previous(); assertThat(result, is(sqlPart)); }
@Nullable @Override public SqlPart previous() { return mPrevious; }
AsImpl extends BaseFinishedStatement implements As { @Nullable @Override public SqlPart previous() { return mPrevious; } }
AsImpl extends BaseFinishedStatement implements As { @Nullable @Override public SqlPart previous() { return mPrevious; } AsImpl(@NotNull final FinishedSelectStatement selectStatement, @NotNull final SqlPart previous); }
AsImpl extends BaseFinishedStatement implements As { @Nullable @Override public SqlPart previous() { return mPrevious; } AsImpl(@NotNull final FinishedSelectStatement selectStatement, @NotNull final SqlPart previous); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous(); }
AsImpl extends BaseFinishedStatement implements As { @Nullable @Override public SqlPart previous() { return mPrevious; } AsImpl(@NotNull final FinishedSelectStatement selectStatement, @NotNull final SqlPart previous); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous();  }