@Test public void toStringContainsUrl() { final Party party = new Party("someurl"); assertThat(party.toString()).contains("someurl"); }
@Override public String toString() { return "Party{" + "url=" + url + '}'; }
Party { @Override public String toString() { return "Party{" + "url=" + url + '}'; } }
Party { @Override public String toString() { return "Party{" + "url=" + url + '}'; } Party(final String url); }
Party { @Override public String toString() { return "Party{" + "url=" + url + '}'; } Party(final String url); String getUrl(); @Override final boolean equals(final Object o); @Override final int hashCode(); @Override String toString(); }
Party { @Override public String toString() { return "Party{" + "url=" + url + '}'; } Party(final String url); String getUrl(); @Override final boolean equals(final Object o); @Override final int hashCode(); @Override String toString();  }