doc / ch.tutteli.atrium.logic.creating.impl / RootExpectOptionsChooserImpl / withComponent

withComponent

fun <I : Any> withComponent(kClass: KClass<I>, factory: (ComponentFactoryContainer) -> I): Unit (source)

Overrides OptionsChooser.withComponent

Expects a factory which creates the component of type I which is used instead of the currently specified factory.