@Test(expected = IllegalArgumentException.class) public void testThatCopyTableOperationThrowsExceptionWhenNullInputForTargetTableName() { SchemaOperations.copyTable("users", null); }
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);   }