@Test public void toString_should_return_a_valid_string() { QueryParameter queryParameter = new QueryParameter("Foo"); assertThat(queryParameter.toString()).isEqualTo("QueryParameter{name='Foo'}"); }
@Override public String toString() { return "QueryParameter{" + "name='" + name + '\'' + '}'; }
QueryParameter { @Override public String toString() { return "QueryParameter{" + "name='" + name + '\'' + '}'; } }
QueryParameter { @Override public String toString() { return "QueryParameter{" + "name='" + name + '\'' + '}'; } QueryParameter(String name); }
QueryParameter { @Override public String toString() { return "QueryParameter{" + "name='" + name + '\'' + '}'; } QueryParameter(String name); String getName(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
QueryParameter { @Override public String toString() { return "QueryParameter{" + "name='" + name + '\'' + '}'; } QueryParameter(String name); String getName(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }