@Test(expected = IllegalArgumentException.class) public void testCreatingTableWithEmptyStringForTableName() { SchemaOperations.createTable(""); }
CreateTable(String tableName) { checkArgument(!Strings.isNullOrEmpty(tableName), "You must specify a 'tableName'."); this.tableName = tableName; this.columns = Lists.newArrayList(); }
CreateTable implements SchemaOperation { CreateTable(String tableName) { checkArgument(!Strings.isNullOrEmpty(tableName), "You must specify a 'tableName'."); this.tableName = tableName; this.columns = Lists.newArrayList(); } }
CreateTable implements SchemaOperation { CreateTable(String tableName) { checkArgument(!Strings.isNullOrEmpty(tableName), "You must specify a 'tableName'."); this.tableName = tableName; this.columns = Lists.newArrayList(); } CreateTable(String tableName); }
CreateTable implements SchemaOperation { CreateTable(String tableName) { checkArgument(!Strings.isNullOrEmpty(tableName), "You must specify a 'tableName'."); this.tableName = tableName; this.columns = Lists.newArrayList(); } CreateTable(String tableName); CreateTable with(String name, ColumnType type, Hint... hints); CreateTable with(String name, ColumnType type, String defaultValueExpression, Hint... hints); ImmutableList<ColumnDefinition> getColumns(); }
CreateTable implements SchemaOperation { CreateTable(String tableName) { checkArgument(!Strings.isNullOrEmpty(tableName), "You must specify a 'tableName'."); this.tableName = tableName; this.columns = Lists.newArrayList(); } CreateTable(String tableName); CreateTable with(String name, ColumnType type, Hint... hints); CreateTable with(String name, ColumnType type, String defaultValueExpression, Hint... hints); ImmutableList<ColumnDefinition> getColumns();  }