@Test(expected = IllegalArgumentException.class) public void testDropColumnThrowsExceptionWhenEmptyStringForTableName() { SchemaOperations.dropColumn("", "age"); }
DropColumn(String tableName, String columnName) { checkArgument(!Strings.isNullOrEmpty(tableName), "You must specify a 'tableName'."); checkArgument(!Strings.isNullOrEmpty(columnName), "You must specify a 'columnName'."); this.tableName = tableName; this.columnName = columnName; }
DropColumn implements SchemaOperation { DropColumn(String tableName, String columnName) { checkArgument(!Strings.isNullOrEmpty(tableName), "You must specify a 'tableName'."); checkArgument(!Strings.isNullOrEmpty(columnName), "You must specify a 'columnName'."); this.tableName = tableName; this.columnName = columnName; } }
DropColumn implements SchemaOperation { DropColumn(String tableName, String columnName) { checkArgument(!Strings.isNullOrEmpty(tableName), "You must specify a 'tableName'."); checkArgument(!Strings.isNullOrEmpty(columnName), "You must specify a 'columnName'."); this.tableName = tableName; this.columnName = columnName; } DropColumn(String tableName, String columnName); }
DropColumn implements SchemaOperation { DropColumn(String tableName, String columnName) { checkArgument(!Strings.isNullOrEmpty(tableName), "You must specify a 'tableName'."); checkArgument(!Strings.isNullOrEmpty(columnName), "You must specify a 'columnName'."); this.tableName = tableName; this.columnName = columnName; } DropColumn(String tableName, String columnName);  }
DropColumn implements SchemaOperation { DropColumn(String tableName, String columnName) { checkArgument(!Strings.isNullOrEmpty(tableName), "You must specify a 'tableName'."); checkArgument(!Strings.isNullOrEmpty(columnName), "You must specify a 'columnName'."); this.tableName = tableName; this.columnName = columnName; } DropColumn(String tableName, String columnName);   }