testing / com.airbnb.mvrx.test / MvRxTestRule / <init>

<init>

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

To use this in your test class, add:

@get:Rule
val mvrxRule = MvRxTestRule()