@Test public void renameTo_returnsNotNull() { AlterTableImpl table = new AlterTableImpl("database", "table", mock(SqlPart.class)); RenameTo result = table.renameTo(""); assertThat(result, is(notNullValue())); }
@NotNull @Override public RenameTo renameTo(@NotNull final String newTableName) { return new RenameToImpl(newTableName, this); }
AlterTableImpl extends BaseSqlPart implements AlterTable { @NotNull @Override public RenameTo renameTo(@NotNull final String newTableName) { return new RenameToImpl(newTableName, this); } }
AlterTableImpl extends BaseSqlPart implements AlterTable { @NotNull @Override public RenameTo renameTo(@NotNull final String newTableName) { return new RenameToImpl(newTableName, this); } AlterTableImpl(@Nullable final String databaseName, @NotNull final String tableName, @NotNull final SqlPart previous); }
AlterTableImpl extends BaseSqlPart implements AlterTable { @NotNull @Override public RenameTo renameTo(@NotNull final String newTableName) { return new RenameToImpl(newTableName, this); } AlterTableImpl(@Nullable final String databaseName, @NotNull final String tableName, @NotNull final SqlPart previous); @NotNull @Override RenameTo renameTo(@NotNull final String newTableName); @NotNull @Override AddColumn add(@NotNull final Column column); @NotNull @Override AddColumn addColumn(@NotNull final Column column); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous(); }
AlterTableImpl extends BaseSqlPart implements AlterTable { @NotNull @Override public RenameTo renameTo(@NotNull final String newTableName) { return new RenameToImpl(newTableName, this); } AlterTableImpl(@Nullable final String databaseName, @NotNull final String tableName, @NotNull final SqlPart previous); @NotNull @Override RenameTo renameTo(@NotNull final String newTableName); @NotNull @Override AddColumn add(@NotNull final Column column); @NotNull @Override AddColumn addColumn(@NotNull final Column column); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous();  }