@Test public void previous_returnsProperItem() { SqlPart sqlPart = mock(SqlPart.class); DeleteFromImpl deleteFrom = new DeleteFromImpl(null, "table", sqlPart); SqlPart result = deleteFrom.previous(); assertThat(result, is(sqlPart)); }
@Nullable @Override public SqlPart previous() { return mPrevious; }
DeleteFromImpl extends BaseFinishedDeleteStatement implements DeleteFrom { @Nullable @Override public SqlPart previous() { return mPrevious; } }
DeleteFromImpl extends BaseFinishedDeleteStatement implements DeleteFrom { @Nullable @Override public SqlPart previous() { return mPrevious; } DeleteFromImpl(@Nullable final String databaseName, @NotNull final String tableName, @NotNull final SqlPart previous); }
DeleteFromImpl extends BaseFinishedDeleteStatement implements DeleteFrom { @Nullable @Override public SqlPart previous() { return mPrevious; } DeleteFromImpl(@Nullable final String databaseName, @NotNull final String tableName, @NotNull final SqlPart previous); @NotNull @Override DeleteWhere where(@NotNull final String expression, @NotNull final Object... arguments); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous(); }
DeleteFromImpl extends BaseFinishedDeleteStatement implements DeleteFrom { @Nullable @Override public SqlPart previous() { return mPrevious; } DeleteFromImpl(@Nullable final String databaseName, @NotNull final String tableName, @NotNull final SqlPart previous); @NotNull @Override DeleteWhere where(@NotNull final String expression, @NotNull final Object... arguments); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous();  }