hasEffects

fun <M, F> hasEffects(matcher: Matcher<Iterable<F>>): Matcher<Next<M, F>>

Returns a matcher that matches Next instances whose effects match the supplied effect matcher.

Parameters

matcher

the matcher to apply to the effects

M

the model type

F

the effect type


fun <M, F> hasEffects(vararg effects: F): Matcher<Next<M, F>>

Returns a matcher that matches if all the supplied effects are present in the supplied Next, in any order. The Next may have more effects than the ones included.

Return

a matcher that matches Next instances that include all the supplied effects

Parameters

effects

the effects to match (possibly empty)

M

the model type

F

the effect type