Package 

Class MockableMavericksStateStore

  • All Implemented Interfaces:
    com.airbnb.mvrx.MavericksStateStore , com.airbnb.mvrx.ScriptableStateStore , com.airbnb.mvrx.mocking.MockableStateStore

    
    public final class MockableMavericksStateStore<S extends MavericksState>
     implements MockableStateStore<S>
                        

    Allows switching between a mocked state store and a real state store behavior. This is intended to enable testing.

    When StateStoreBehavior.Scriptable behavior is set, next can be called to force a state synchronously. When in this mode, calls to set have no effect. In other modes, it is an error to call next.

    The mode can be dynamically changed to modify behavior at runtime.