@Test public void getMessage() { assertThat(new ParamValidationError("full message").getMessage()) .as("The call to getMessage") .isEqualTo("full message"); assertThat(new ParamValidationError("name", "value", "reason").getMessage()) .as("The call to getMessage with generated message") .contains("name") .contains("value") .contains("reason"); }
public String getMessage() { return this.message; }
ParamValidationError { public String getMessage() { return this.message; } }
ParamValidationError { public String getMessage() { return this.message; } ParamValidationError(final String message);  ParamValidationError(final String parameterName, final String parameterValue, final String reason); }
ParamValidationError { public String getMessage() { return this.message; } ParamValidationError(final String message);  ParamValidationError(final String parameterName, final String parameterValue, final String reason); String getMessage(); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString(); }
ParamValidationError { public String getMessage() { return this.message; } ParamValidationError(final String message);  ParamValidationError(final String parameterName, final String parameterValue, final String reason); String getMessage(); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString();  }