mvrx-mocking / com.airbnb.mvrx.mocking / MockableMavericksView / provideMocks

provideMocks

open fun provideMocks(): MavericksViewMocks<out MockableMavericksView, out Parcelable>

Override this to provide the mock states that should be used for testing this view.

It is intended that functions such as mockSingleViewModel be used to provide the value of this function, instead of instantiating MavericksViewMocks directly

You should NOT invoke this function directly. You can access the mocks for a view via MavericksViewMocks.getFrom instead.

For implementing this function, see:

See Also

mockNoViewModels

mockSingleViewModel

combineMocks

MavericksViewMocks.getFrom

getMockVariants

mockVariants