Package org.orbitmvi.orbit

Types

OrbitVerification
Link copied to clipboard
common
class OrbitVerification<STATE : Any, SIDE_EFFECT : Any>
TestFixtures
Link copied to clipboard
common
class TestFixtures<STATE : Any, SIDE_EFFECT : Any>(initialState: STATE, stateObserver: TestFlowObserver<STATE>, sideEffectObserver: TestFlowObserver<SIDE_EFFECT>, blocking: Boolean)
TestFlowObserver
Link copied to clipboard
common
class TestFlowObserver<T>(flow: Flow<T>)
Allows you to record all observed values of a flow for easy testing.
TestHarness
Link copied to clipboard
common
class TestHarness

Functions

assert
Link copied to clipboard
common
fun <STATE : Any, SIDE_EFFECT : Any> ContainerHost<STATE, SIDE_EFFECT>.assert(initialState: STATE, timeoutMillis: Long = 5000L, block: OrbitVerification<STATE, SIDE_EFFECT>.() -> Unit = {})
Perform assertions on your ContainerHost.
test
Link copied to clipboard
common
fun <T> Flow<T>.test(): TestFlowObserver<T>
Allows you to put a Flow into test mode.
fun <STATE : Any, SIDE_EFFECT : Any, T : ContainerHost<STATE, SIDE_EFFECT>> T.test(initialState: STATE, isolateFlow: Boolean = true, runOnCreate: Boolean = false, blocking: Boolean = true): T
Switches your ContainerHost into test mode.