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

IllegalArgumentException

if no value or constraint was provided.

Constructors

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