@Test(expected = IllegalArgumentException.class) public void testMergeTableThrowsExceptionWhenEmptyStringForRightTableName() { SchemaOperations.mergeTable("users", "", "users_new"); }
MergeTable(String leftTableName, String rightTableName, String targetTableName) { checkArgument(!Strings.isNullOrEmpty(leftTableName), "You must specify a 'leftTableName'."); checkArgument(!Strings.isNullOrEmpty(rightTableName), "You must specify a 'rightTableName'."); checkArgument(!Strings.isNullOrEmpty(targetTableName), "You must specify a 'targetTableName'."); this.leftTableName = leftTableName; this.rightTableName = rightTableName; this.targetTableName = targetTableName; }
MergeTable implements SchemaOperation { MergeTable(String leftTableName, String rightTableName, String targetTableName) { checkArgument(!Strings.isNullOrEmpty(leftTableName), "You must specify a 'leftTableName'."); checkArgument(!Strings.isNullOrEmpty(rightTableName), "You must specify a 'rightTableName'."); checkArgument(!Strings.isNullOrEmpty(targetTableName), "You must specify a 'targetTableName'."); this.leftTableName = leftTableName; this.rightTableName = rightTableName; this.targetTableName = targetTableName; } }
MergeTable implements SchemaOperation { MergeTable(String leftTableName, String rightTableName, String targetTableName) { checkArgument(!Strings.isNullOrEmpty(leftTableName), "You must specify a 'leftTableName'."); checkArgument(!Strings.isNullOrEmpty(rightTableName), "You must specify a 'rightTableName'."); checkArgument(!Strings.isNullOrEmpty(targetTableName), "You must specify a 'targetTableName'."); this.leftTableName = leftTableName; this.rightTableName = rightTableName; this.targetTableName = targetTableName; } MergeTable(String leftTableName, String rightTableName, String targetTableName); }
MergeTable implements SchemaOperation { MergeTable(String leftTableName, String rightTableName, String targetTableName) { checkArgument(!Strings.isNullOrEmpty(leftTableName), "You must specify a 'leftTableName'."); checkArgument(!Strings.isNullOrEmpty(rightTableName), "You must specify a 'rightTableName'."); checkArgument(!Strings.isNullOrEmpty(targetTableName), "You must specify a 'targetTableName'."); this.leftTableName = leftTableName; this.rightTableName = rightTableName; this.targetTableName = targetTableName; } MergeTable(String leftTableName, String rightTableName, String targetTableName);  }
MergeTable implements SchemaOperation { MergeTable(String leftTableName, String rightTableName, String targetTableName) { checkArgument(!Strings.isNullOrEmpty(leftTableName), "You must specify a 'leftTableName'."); checkArgument(!Strings.isNullOrEmpty(rightTableName), "You must specify a 'rightTableName'."); checkArgument(!Strings.isNullOrEmpty(targetTableName), "You must specify a 'targetTableName'."); this.leftTableName = leftTableName; this.rightTableName = rightTableName; this.targetTableName = targetTableName; } MergeTable(String leftTableName, String rightTableName, String targetTableName);   }