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

if no value or constraint was provided.

Constructors

or
Link copied to clipboard
common
fun or(vararg subConstraints: Any?)
the expected values or constraints.

Functions

matches
Link copied to clipboard
common
open override fun matches(actual: Any?): Boolean
Resolves if the constraint matches the given Proxy Argument.
toString
Link copied to clipboard
common
open override fun toString(): String