@Test public void testEquals() { Container c = Container.of("foo", new TreeSet<>()); Container cCopy = Container.of("foo", new TreeSet<>()); Container cWithTestrig = Container.of("foo", Sets.newTreeSet(Collections.singletonList("testrig"))); Container cOtherName = Container.of("bar", new TreeSet<>()); new EqualsTester() .addEqualityGroup(c, cCopy) .addEqualityGroup(cWithTestrig) .addEqualityGroup(cOtherName) .testEquals(); }
@Override public boolean equals(Object o) { if (!(o instanceof Container)) { return false; } Container other = (Container) o; return Objects.equals(_name, other._name) && Objects.equals(_testrigs, other._testrigs); }
Container { @Override public boolean equals(Object o) { if (!(o instanceof Container)) { return false; } Container other = (Container) o; return Objects.equals(_name, other._name) && Objects.equals(_testrigs, other._testrigs); } }
Container { @Override public boolean equals(Object o) { if (!(o instanceof Container)) { return false; } Container other = (Container) o; return Objects.equals(_name, other._name) && Objects.equals(_testrigs, other._testrigs); } private  Container(String name, SortedSet<String> testrigs); }
Container { @Override public boolean equals(Object o) { if (!(o instanceof Container)) { return false; } Container other = (Container) o; return Objects.equals(_name, other._name) && Objects.equals(_testrigs, other._testrigs); } private  Container(String name, SortedSet<String> testrigs); @JsonCreator static Container of(
      @JsonProperty(PROP_NAME) String name,
      @JsonProperty(PROP_TESTRIGS) SortedSet<String> testrigs); @JsonProperty(PROP_NAME) String getName(); @JsonProperty(PROP_TESTRIGS) SortedSet<String> getTestrigs(); @JsonProperty(PROP_ANALYSIS) Path getAnalysis(); @JsonProperty(PROP_NAME) void setName(String name); @JsonProperty(PROP_TESTRIGS) void setTestrigs(SortedSet<String> testrigs); @JsonProperty(PROP_ANALYSIS) void setAnalysis(Path analysis); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
Container { @Override public boolean equals(Object o) { if (!(o instanceof Container)) { return false; } Container other = (Container) o; return Objects.equals(_name, other._name) && Objects.equals(_testrigs, other._testrigs); } private  Container(String name, SortedSet<String> testrigs); @JsonCreator static Container of(
      @JsonProperty(PROP_NAME) String name,
      @JsonProperty(PROP_TESTRIGS) SortedSet<String> testrigs); @JsonProperty(PROP_NAME) String getName(); @JsonProperty(PROP_TESTRIGS) SortedSet<String> getTestrigs(); @JsonProperty(PROP_ANALYSIS) Path getAnalysis(); @JsonProperty(PROP_NAME) void setName(String name); @JsonProperty(PROP_TESTRIGS) void setTestrigs(SortedSet<String> testrigs); @JsonProperty(PROP_ANALYSIS) void setAnalysis(Path analysis); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }