Package 

Class MvRxTestRule

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    @Deprecated(message = Use MavericksTestRule instead., replaceWith = @ReplaceWith(imports = {com.airbnb.mvrx.test.MavericksTestRule}, expression = MavericksTestRule(setForceDisableLifecycleAwareObserver, viewModelMockBehavior, debugMode, testDispatcher))) 
    public final class MvRxTestRule
    extends ExternalResource
                        

    To use this in your test class, add:

    @get:Rule
    val mvrxRule = MvRxTestRule()
    • Constructor Summary

      Constructors 
      Constructor Description
      MvRxTestRule(Boolean setForceDisableLifecycleAwareObserver, MockBehavior viewModelMockBehavior, Boolean debugMode, CoroutineDispatcher testDispatcher)
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class com.airbnb.mvrx.test.MvRxTestRule

        apply
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MvRxTestRule

        MvRxTestRule(Boolean setForceDisableLifecycleAwareObserver, MockBehavior viewModelMockBehavior, Boolean debugMode, CoroutineDispatcher testDispatcher)