Package 

Class MockBehavior


  • 
    public final class MockBehavior
    
                        

    Different types of mock setups that can be provided.

    When a mocked view model is created, "existing" view model expectations are ignored, and the viewmodel is created from mocked state instead of throwing an exception.

    However, it is up to the caller to make sure that a ViewModel of the expected type doesn't already exist in the view model store, otherwise the framework will use that one instead of allowing us to create a new mocked one, so make sure to clear the store of any previously created viewmodels first.