verifyToString function

void verifyToString(
  1. Object object,
  2. String string
)

Verifies (using expect) that the result of calling toString() on the given object is equal to the expected value.

Arguments

  • Object object - the object being tested.
  • String string - the expected string value.

Implementation

void verifyToString(Object object, String string) {
  verifyToStringMatches(object, equals(string));
}