Package 

Class MavericksTestRule

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

    
    public final class MavericksTestRule
    extends ExternalResource
                        

    To use this in your junit 4 test class, add:

    @get:Rule
    val mavericksRule = MavericksTestRule()
    • Constructor Summary

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

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

        apply
      • Methods inherited from class java.lang.Object

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

      • MavericksTestRule

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