@Test public void testHasCustomStringRepresentation() { ImmutableHeader sut = createHeader("header", "value"); assertThat(sut.toString(),not(equalTo(Utils.defaultToString(sut)))); }
@Override public String toString() { return MoreObjects. toStringHelper(Header.class). add("name",this.name). add("rawValue",this.rawValue). add("elements",this.elements). toString(); }
ImmutableHeader implements Header { @Override public String toString() { return MoreObjects. toStringHelper(Header.class). add("name",this.name). add("rawValue",this.rawValue). add("elements",this.elements). toString(); } }
ImmutableHeader implements Header { @Override public String toString() { return MoreObjects. toStringHelper(Header.class). add("name",this.name). add("rawValue",this.rawValue). add("elements",this.elements). toString(); } ImmutableHeader(String name, String rawValue, List<ImmutableElement> elements); }
ImmutableHeader implements Header { @Override public String toString() { return MoreObjects. toStringHelper(Header.class). add("name",this.name). add("rawValue",this.rawValue). add("elements",this.elements). toString(); } ImmutableHeader(String name, String rawValue, List<ImmutableElement> elements); @Override String name(); @Override String rawValue(); @Override ImmutableList<Element> elements(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
ImmutableHeader implements Header { @Override public String toString() { return MoreObjects. toStringHelper(Header.class). add("name",this.name). add("rawValue",this.rawValue). add("elements",this.elements). toString(); } ImmutableHeader(String name, String rawValue, List<ImmutableElement> elements); @Override String name(); @Override String rawValue(); @Override ImmutableList<Element> elements(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }