@Test(priority=1) public void testBuildSimpleSpec() { Assert.assertEquals(simpleHiveSpec.getTable().getDbName(), dbName); Assert.assertEquals(simpleHiveSpec.getTable().getTableName(), tableName); Assert.assertEquals(0, simpleHiveSpec.getPostActivities().size()); Assert.assertEquals(0, simpleHiveSpec.getPreActivities().size()); Assert.assertEquals(0, simpleHiveSpec.getPredicates().size()); Assert.assertEquals(Optional.absent(), simpleHiveSpec.getPartition()); String actualString = Objects.toStringHelper(simpleHiveSpec).omitNullValues().add("path", pathString) .add("db", dbName).add("table", tableName) .add("partition", Optional.absent().orNull()).toString(); Assert.assertEquals(actualString, simpleHiveSpec.toString()); }
@Override public String toString() { return Objects.toStringHelper(this).omitNullValues().add("path", this.path.toString()) .add("db", this.table.getDbName()).add("table", this.table.getTableName()) .add("partition", this.partition.orNull()).toString(); }
SimpleHiveSpec implements HiveSpec, HiveSpecWithPreActivities, HiveSpecWithPostActivities, HiveSpecWithPredicates { @Override public String toString() { return Objects.toStringHelper(this).omitNullValues().add("path", this.path.toString()) .add("db", this.table.getDbName()).add("table", this.table.getTableName()) .add("partition", this.partition.orNull()).toString(); } }
SimpleHiveSpec implements HiveSpec, HiveSpecWithPreActivities, HiveSpecWithPostActivities, HiveSpecWithPredicates { @Override public String toString() { return Objects.toStringHelper(this).omitNullValues().add("path", this.path.toString()) .add("db", this.table.getDbName()).add("table", this.table.getTableName()) .add("partition", this.partition.orNull()).toString(); } protected  SimpleHiveSpec(Builder<?> builder); }
SimpleHiveSpec implements HiveSpec, HiveSpecWithPreActivities, HiveSpecWithPostActivities, HiveSpecWithPredicates { @Override public String toString() { return Objects.toStringHelper(this).omitNullValues().add("path", this.path.toString()) .add("db", this.table.getDbName()).add("table", this.table.getTableName()) .add("partition", this.partition.orNull()).toString(); } protected  SimpleHiveSpec(Builder<?> builder); @Override String toString(); }
SimpleHiveSpec implements HiveSpec, HiveSpecWithPreActivities, HiveSpecWithPostActivities, HiveSpecWithPredicates { @Override public String toString() { return Objects.toStringHelper(this).omitNullValues().add("path", this.path.toString()) .add("db", this.table.getDbName()).add("table", this.table.getTableName()) .add("partition", this.partition.orNull()).toString(); } protected  SimpleHiveSpec(Builder<?> builder); @Override String toString();  }