objectEquals

fun <T : Any> objectEquals(request: T?, name: String): Matcher<T?>(source)

Returns a matcher that verifies whether the actual value is equal to the specified expected object.

The provided name is used in failure messages to identify the parameter being checked.

Return

A matcher that succeeds if the actual value equals the expected object.

Parameters

request

The expected object to compare against.

name

The identifier used in error messages.