any

class any(expected: KClass<*>? = null) : KMockContract.ArgumentConstraint

VerificationConstraint which allows any value including null.

Author

Matthias Geisler

See also

Parameters

expected

KClass of the expected value. If set the matcher is restricted to the given class type (excluding null). If null any value (type) is accepted. Default is null.

Constructors

Link copied to clipboard
fun any(expected: KClass<*>? = null)

Functions

Link copied to clipboard
open override fun matches(actual: Any?): Boolean

Resolves if the constraint matches the given Proxy Argument.

Link copied to clipboard
open override fun toString(): String