@Test public void previous_returnsProperItem() { SqlPart sqlPart = mock(SqlPart.class); DropTableImpl dropTable = new DropTableImpl(null, "table", sqlPart); SqlPart result = dropTable.previous(); assertThat(result, is(sqlPart)); }
@Nullable @Override public SqlPart previous() { return mPrevious; }
DropTableImpl extends BaseFinishedStatement implements DropTable { @Nullable @Override public SqlPart previous() { return mPrevious; } }
DropTableImpl extends BaseFinishedStatement implements DropTable { @Nullable @Override public SqlPart previous() { return mPrevious; } DropTableImpl(@Nullable final String databaseName, @NotNull final String tableName, @NotNull final SqlPart previous); }
DropTableImpl extends BaseFinishedStatement implements DropTable { @Nullable @Override public SqlPart previous() { return mPrevious; } DropTableImpl(@Nullable final String databaseName, @NotNull final String tableName, @NotNull final SqlPart previous); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous(); }
DropTableImpl extends BaseFinishedStatement implements DropTable { @Nullable @Override public SqlPart previous() { return mPrevious; } DropTableImpl(@Nullable final String databaseName, @NotNull final String tableName, @NotNull final SqlPart previous); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous();  }