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