@Test public void testCopyTableOperation() { CopyTable operation = SchemaOperations.copyTable("users", "players"); assertEquals("users", operation.getSourceTableName()); assertEquals("players", operation.getTargetTableName()); }
CopyTable(String sourceTableName, String targetTableName) { checkArgument(!Strings.isNullOrEmpty(sourceTableName), "You must specify 'sourceTableName'."); checkArgument(!Strings.isNullOrEmpty(targetTableName), "You must specify 'targetTableName'."); this.sourceTableName = sourceTableName; this.targetTableName = targetTableName; }
CopyTable implements SchemaOperation { CopyTable(String sourceTableName, String targetTableName) { checkArgument(!Strings.isNullOrEmpty(sourceTableName), "You must specify 'sourceTableName'."); checkArgument(!Strings.isNullOrEmpty(targetTableName), "You must specify 'targetTableName'."); this.sourceTableName = sourceTableName; this.targetTableName = targetTableName; } }
CopyTable implements SchemaOperation { CopyTable(String sourceTableName, String targetTableName) { checkArgument(!Strings.isNullOrEmpty(sourceTableName), "You must specify 'sourceTableName'."); checkArgument(!Strings.isNullOrEmpty(targetTableName), "You must specify 'targetTableName'."); this.sourceTableName = sourceTableName; this.targetTableName = targetTableName; } CopyTable(String sourceTableName, String targetTableName); }
CopyTable implements SchemaOperation { CopyTable(String sourceTableName, String targetTableName) { checkArgument(!Strings.isNullOrEmpty(sourceTableName), "You must specify 'sourceTableName'."); checkArgument(!Strings.isNullOrEmpty(targetTableName), "You must specify 'targetTableName'."); this.sourceTableName = sourceTableName; this.targetTableName = targetTableName; } CopyTable(String sourceTableName, String targetTableName);  }
CopyTable implements SchemaOperation { CopyTable(String sourceTableName, String targetTableName) { checkArgument(!Strings.isNullOrEmpty(sourceTableName), "You must specify 'sourceTableName'."); checkArgument(!Strings.isNullOrEmpty(targetTableName), "You must specify 'targetTableName'."); this.sourceTableName = sourceTableName; this.targetTableName = targetTableName; } CopyTable(String sourceTableName, String targetTableName);   }