@Test public void testTraceElement_equals() { List<Fragment> fragments1 = ImmutableList.of(new TextFragment("a")); List<Fragment> fragments2 = ImmutableList.of(new TextFragment("b")); new EqualsTester() .addEqualityGroup(new TraceElement(fragments1), new TraceElement(fragments1)) .addEqualityGroup(new TraceElement(fragments2)) .testEquals(); }
public static TraceElement of(String text) { return TraceElement.builder().add(text).build(); }
TraceElement implements Serializable { public static TraceElement of(String text) { return TraceElement.builder().add(text).build(); } }
TraceElement implements Serializable { public static TraceElement of(String text) { return TraceElement.builder().add(text).build(); } TraceElement(List<Fragment> fragments); }
TraceElement implements Serializable { public static TraceElement of(String text) { return TraceElement.builder().add(text).build(); } TraceElement(List<Fragment> fragments); static Builder builder(); static TraceElement of(String text); @JsonProperty(PROP_FRAGMENTS) List<Fragment> getFragments(); @Override boolean equals(Object o); @Override int hashCode(); @JsonIgnore String getText(); @Override String toString(); }
TraceElement implements Serializable { public static TraceElement of(String text) { return TraceElement.builder().add(text).build(); } TraceElement(List<Fragment> fragments); static Builder builder(); static TraceElement of(String text); @JsonProperty(PROP_FRAGMENTS) List<Fragment> getFragments(); @Override boolean equals(Object o); @Override int hashCode(); @JsonIgnore String getText(); @Override String toString();  }