@Test public void testTraceElement_JsonSerialization() { TraceElement traceElement = new TraceElement(ImmutableList.of(new TextFragment("a"))); TraceElement clone = BatfishObjectMapper.clone(traceElement, TraceElement.class); assertEquals(traceElement, clone); }
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();  }