mvrx-mocking / com.airbnb.mvrx.mocking / MavericksMock / Type

Type

enum class Type

There are a set of standard mock variants that all Views have. Beyond that users can define custom mock variants.

Enum Values

DefaultInitialization

Uses view arguments to test the initialization pathway of Mavericks.

DefaultState

Uses the default state of a mock builder to represent the canonical form of a View.

ProcessRecreation

Takes the default state and applies the process used to save and restore state. The output state approximates the State after app process recreation. (This cannot be exact because in practice it may rely on arguments set in a previous Fragment.)

Custom

Any additional mock variant defined by the user.