doc / ch.tutteli.atrium.logic.creating / RootExpectBuilder / OptionsChooser / withSingletonComponent

withSingletonComponent

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

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