@Test public void testJsonSerialization() { Aggregate a = new Aggregate("someAgg", AggregateType.REGION); a.setContents(ImmutableSet.of("id1", "id2")); assertThat(a, equalTo(BatfishObjectMapper.clone(a, Aggregate.class))); }
public void setContents(Set<String> contents) { _contents = contents; }
Aggregate extends BfObject { public void setContents(Set<String> contents) { _contents = contents; } }
Aggregate extends BfObject { public void setContents(Set<String> contents) { _contents = contents; } Aggregate(String name, AggregateType type); }
Aggregate extends BfObject { public void setContents(Set<String> contents) { _contents = contents; } Aggregate(String name, AggregateType type); @JsonProperty(PROP_CONTENTS) Set<String> getContents(); @JsonProperty(PROP_NAME) String getName(); @JsonProperty(PROP_TYPE) AggregateType getType(); void setContents(Set<String> contents); void setType(AggregateType type); @Override boolean equals(@Nullable Object o); @Override int hashCode(); }
Aggregate extends BfObject { public void setContents(Set<String> contents) { _contents = contents; } Aggregate(String name, AggregateType type); @JsonProperty(PROP_CONTENTS) Set<String> getContents(); @JsonProperty(PROP_NAME) String getName(); @JsonProperty(PROP_TYPE) AggregateType getType(); void setContents(Set<String> contents); void setType(AggregateType type); @Override boolean equals(@Nullable Object o); @Override int hashCode();  }