@Test public void regularCharacterEncodingHasCustomToString() throws Exception { ImmutableCharacterEncoding sut = regular(); assertThat(sut.toString(),equalTo("ImmutableCharacterEncoding{charset=UTF-8}")); }
@Override public String toString() { return MoreObjects. toStringHelper(getClass()). add("charset",name()). toString(); }
ImmutableCharacterEncoding implements CharacterEncoding { @Override public String toString() { return MoreObjects. toStringHelper(getClass()). add("charset",name()). toString(); } }
ImmutableCharacterEncoding implements CharacterEncoding { @Override public String toString() { return MoreObjects. toStringHelper(getClass()). add("charset",name()). toString(); } ImmutableCharacterEncoding(Charset charset); }
ImmutableCharacterEncoding implements CharacterEncoding { @Override public String toString() { return MoreObjects. toStringHelper(getClass()). add("charset",name()). toString(); } ImmutableCharacterEncoding(Charset charset); @Override boolean isWildcard(); @Override String name(); @Override Charset charset(); @Override String toHeader(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
ImmutableCharacterEncoding implements CharacterEncoding { @Override public String toString() { return MoreObjects. toStringHelper(getClass()). add("charset",name()). toString(); } ImmutableCharacterEncoding(Charset charset); @Override boolean isWildcard(); @Override String name(); @Override Charset charset(); @Override String toHeader(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }