numOfSubComponents

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.

Parameters

c

The ComponentContext used to create the tree.

matcher

The Matcher that verifies the number of sub-components against a condition