SuspendingTestContainerHost

class SuspendingTestContainerHost<STATE : Any, SIDE_EFFECT : Any, CONTAINER_HOST : ContainerHost<STATE, SIDE_EFFECT>>(actual: CONTAINER_HOST, initialState: STATE, isolateFlow: Boolean) : TestContainerHost<STATE, SIDE_EFFECT, CONTAINER_HOST>

Functions

Link copied to clipboard
fun assert(initialState: STATE, timeoutMillis: Long = 1000, block: OrbitVerification<STATE, SIDE_EFFECT>.() -> Unit = {})

Perform assertions on your ContainerHost.

Link copied to clipboard
suspend fun runOnCreate(): SuspendingTestContainerHost<STATE, SIDE_EFFECT, CONTAINER_HOST>

Invoke onCreate property for the ContainerHost backed by LazyCreateContainerDecorator, e.g.: created by CoroutineScope.container

Link copied to clipboard
suspend fun testIntent(action: CONTAINER_HOST.() -> Unit): SuspendingTestContainerHost<STATE, SIDE_EFFECT, CONTAINER_HOST>

Invoke an intent on the ContainerHost under test as a suspending function.

Properties

Link copied to clipboard
val sideEffectObserver: TestFlowObserver<SIDE_EFFECT>
Link copied to clipboard
val stateObserver: TestFlowObserver<STATE>

Sources

Link copied to clipboard