AnyTypedMatcher

data class AnyTypedMatcher(val argumentType: KClass<*>) : Matcher<Any> , TypedMatcher, EquivalentMatcher(source)

any() that carries type information so InvocationMatcher can apply checkType()

This matcher matches any value, but its type-checking is important for verification/stubbing. It also supports Kotlin value classes where the runtime argument may be represented by the underlying type (boxed/unboxed forms).

Constructors

Link copied to clipboard
constructor(argumentType: KClass<*>)

Properties

Link copied to clipboard
open override val argumentType: KClass<*>

Functions

Link copied to clipboard
open override fun checkType(arg: Any?): Boolean
Link copied to clipboard
open override fun equivalent(): Matcher<Any>
Link copied to clipboard
open override fun match(arg: Any?): Boolean
Link copied to clipboard
open fun substitute(map: Map<Any, Any>): Matcher<Any>
Link copied to clipboard
open override fun toString(): String