liveTest

fun <STATE : Any, SIDE_EFFECT : Any, CONTAINER_HOST> CONTAINER_HOST.liveTest(initialState: STATE? = null, buildSettings: LiveTestSettingsBuilder.() -> Unit = {}): 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. Orbit dispatchers are overridden with UnconfinedTestDispatcher by default.

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.

buildSettings

Builds the RealSettings for this test


fun <STATE : Any, SIDE_EFFECT : Any, CONTAINER_HOST> CONTAINER_HOST.liveTest(initialState: STATE? = null, settings: <ERROR CLASS>): RegularTestContainerHost<STATE, SIDE_EFFECT, CONTAINER_HOST>

Puts your ContainerHost into live test mode. This mode uses a real Orbit container.

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