@Test public void testHasCustomStringRepresentation() { ImmutableElementParameter sut = createParameter("header", "value"); assertThat(sut.toString(),not(equalTo(Utils.defaultToString(sut)))); }
@Override public String toString() { return MoreObjects. toStringHelper(getClass()). add("name",this.name). add("value",this.value). toString(); }
ImmutableElementParameter implements Parameter { @Override public String toString() { return MoreObjects. toStringHelper(getClass()). add("name",this.name). add("value",this.value). toString(); } }
ImmutableElementParameter implements Parameter { @Override public String toString() { return MoreObjects. toStringHelper(getClass()). add("name",this.name). add("value",this.value). toString(); } ImmutableElementParameter(String name, String value); }
ImmutableElementParameter implements Parameter { @Override public String toString() { return MoreObjects. toStringHelper(getClass()). add("name",this.name). add("value",this.value). toString(); } ImmutableElementParameter(String name, String value); @Override String name(); @Override String value(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
ImmutableElementParameter implements Parameter { @Override public String toString() { return MoreObjects. toStringHelper(getClass()). add("name",this.name). add("value",this.value). toString(); } ImmutableElementParameter(String name, String value); @Override String name(); @Override String value(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }