verifiers library
Useful functions for helping to verify results.
Functions
-
verifyEqualsAndHashCode(
Object instanceA, Object instanceB) → void -
Verifies (using
expect
) that the two provided instances, which should be eqivalent (but not the same instance) are actually equal. -
verifyToString(
Object object, String string) → void -
Verifies (using
expect
) that the result of callingtoString()
on the given object is equal to the expected value. -
verifyToStringMatches(
Object object, Matcher matcher) → void -
Verifies (using
expect
) that the result of callingtoString()
on the given object matches the provided matcher.