testing / com.airbnb.mvrx.test / MvRxTestRule

MvRxTestRule

class MvRxTestRule : ExternalResource

To use this in your test class, add:

@get:Rule
val mvrxRule = MvRxTestRule()

Constructors

<init>

MvRxTestRule(setForceDisableLifecycleAwareObserver: Boolean = true, viewModelMockBehavior: MockBehavior? = MockBehavior( stateStoreBehavior = MockBehavior.StateStoreBehavior.Synchronous ), debugMode: Boolean = false)

To use this in your test class, add:

Functions

after

fun after(): Unit

before

fun before(): Unit