and

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

VerificationConstraint which allows to chain multiple values or constraints together. It matches if all values or constraints matches.

Author

Matthias Geisler

See also

Parameters

subConstraints

the expected values or constraints.

Throws

if no value or constraint was provided.

Constructors

and
Link copied to clipboard
common
fun and(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