@Test public void previous_returnsProperItem() { SqlPart sqlPart = mock(SqlPart.class); TemporaryImpl temporary = new TemporaryImpl(sqlPart); SqlPart result = temporary.previous(); assertThat(result, is(sqlPart)); }
@Nullable @Override public SqlPart previous() { return mPrevious; }
TemporaryImpl extends BaseSqlPart implements Temporary { @Nullable @Override public SqlPart previous() { return mPrevious; } }
TemporaryImpl extends BaseSqlPart implements Temporary { @Nullable @Override public SqlPart previous() { return mPrevious; } TemporaryImpl(@NotNull final SqlPart previous); }
TemporaryImpl extends BaseSqlPart implements Temporary { @Nullable @Override public SqlPart previous() { return mPrevious; } TemporaryImpl(@NotNull final SqlPart previous); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous(); @NotNull @Override CreateTable table(@NotNull final String tableName); @NotNull @Override CreateTable table(@Nullable final String databaseName, @NotNull final String tableName); @NotNull @Override CreateTableIfNotExists tableIfNotExists(@NotNull final String tableName); @NotNull @Override CreateTableIfNotExists tableIfNotExists(@Nullable final String databaseName, @NotNull final String tableName); }
TemporaryImpl extends BaseSqlPart implements Temporary { @Nullable @Override public SqlPart previous() { return mPrevious; } TemporaryImpl(@NotNull final SqlPart previous); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous(); @NotNull @Override CreateTable table(@NotNull final String tableName); @NotNull @Override CreateTable table(@Nullable final String databaseName, @NotNull final String tableName); @NotNull @Override CreateTableIfNotExists tableIfNotExists(@NotNull final String tableName); @NotNull @Override CreateTableIfNotExists tableIfNotExists(@Nullable final String databaseName, @NotNull final String tableName);  }