SubComponentExtractor

open class SubComponentExtractor : Extractor<F, T>

Deprecated

An extractor to be used with assertThat.

In most cases you will want to use the subComponentWith combinator.

Deprecated

Use ) instead.

Functions

Link copied to clipboard
open fun <V> andThen(after: (in R) -> out V): (T) -> V
Link copied to clipboard
abstract fun apply(p: T): R
open fun apply(f: F): T
Link copied to clipboard
open fun <V> compose(before: (in V) -> out T): (V) -> R
Link copied to clipboard
Link copied to clipboard
open fun <T> identity(): (T) -> T
Link copied to clipboard
open fun numOfSubComponents(c: ComponentContext, matcher: Matcher<Integer>): Condition<in Component>
This combinator allows you to make an assertion on the number of sub-components directly spun up by the component under test.
Link copied to clipboard
Link copied to clipboard
open fun subComponentWith(c: ComponentContext, inner: Condition<InspectableComponent>): Condition<in Component>
This combinator allows you to make an assertion that applies to at least one sub-component directly spun up by the component under test.