class MvRxTestRule : ExternalResource
To use this in your test class, add:
@get:Rule
val mvrxRule = MvRxTestRule()
MvRxTestRule(setForceDisableLifecycleAwareObserver: Boolean = true, viewModelMockBehavior: MockBehavior? = MockBehavior(
stateStoreBehavior = MockBehavior.StateStoreBehavior.Synchronous
), debugMode: Boolean = false)
To use this in your test class, add: |
fun after(): Unit |
|
fun before(): Unit |