or

class or(subConstraints: Any?) : KMockContract.ArgumentConstraint

VerificationConstraint which allows to chain multiple values or constraints together. It matches if at least one value or constraints matches.

Author

Matthias Geisler

See also

Parameters

subConstraints

the expected values or constraints.

Throws

IllegalArgumentException

if no value or constraint was provided.

Constructors

Link copied to clipboard
fun or(vararg subConstraints: Any?)

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