Matchers

object Matchers

Functions

Link copied to clipboard
fun <T> anyOf(first: Matcher<in T>, second: Matcher<in T>): AnyOf<T>

Creates a matcher that matches if the examined object matches ANY of the specified matchers. For example:

Link copied to clipboard

Creates a matcher that matches if the examined String contains the specified String anywhere. For example:

Link copied to clipboard
fun <T> equalTo(operand: T): Matcher<T>

Creates a matcher that matches when the examined object is logically equal to the specified operand, as determined by calling the java.lang.Object.equals method on the examined object.