NextMatchers

Provides utility functions for matching Next instances in tests.

Functions

Link copied to clipboard
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.

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.

Link copied to clipboard
fun <M, F> hasModel(): Matcher<Next<M, F>>

Returns a matcher that matches Next instances with a model.

fun <M, F> hasModel(expected: M): Matcher<Next<M, F>>

Returns a matcher that matches Next instances with a model that is equal to the supplied one.

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

Returns a matcher that matches Next instances with a model that matches the supplied model matcher.

Link copied to clipboard
fun <M, F> hasNoEffects(): Matcher<Next<M, F>>

Returns a matcher that matches Next instances with no effects.

Link copied to clipboard
fun <M, F> hasNoModel(): Matcher<Next<M, F>>

Returns a matcher that matches Next instances without a model.

Link copied to clipboard
fun <M, F> hasNothing(): Matcher<Next<M, F>>

Returns a matcher that matches Next instances with no model and no effects.