CaptureMatcher

data class CaptureMatcher<T : Any>(val captureList: MutableList<T>, val argumentType: KClass<*>) : Matcher<T> , CapturingMatcher, TypedMatcher, EquivalentMatcher

Matcher capturing all results to the list.

Constructors

Link copied to clipboard
fun <T : Any> CaptureMatcher(captureList: MutableList<T>, argumentType: KClass<*>)

Functions

Link copied to clipboard
open override fun capture(arg: Any?)
Link copied to clipboard
open fun checkType(arg: Any?): Boolean
Link copied to clipboard
open override fun equivalent(): Matcher<Any>
Link copied to clipboard
open override fun match(arg: T?): Boolean
Link copied to clipboard
open fun substitute(map: Map<Any, Any>): Matcher<T>
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
open override val argumentType: KClass<*>
Link copied to clipboard
val captureList: MutableList<T>