liveTest

fun <STATE : Any, SIDE_EFFECT : Any, CONTAINER_HOST : ContainerHost<STATE, SIDE_EFFECT>> CONTAINER_HOST.liveTest(initialState: STATE? = null, settings: Container.Settings = container.settings.copy(intentDispatcher = Dispatchers.Unconfined)): RegularTestContainerHost<STATE, SIDE_EFFECT, CONTAINER_HOST>

Puts your ContainerHost into live test mode. This mode uses a real Orbit container with some basic test settings.

Return

A live test wrapper around ContainerHost.

Parameters

initialState

The state to initialize the test container with. Omit this parameter to use the real initial state of the container.

settings

Replaces the Container.Settings for this test

Sources

Link copied to clipboard