All Types

com.airbnb.mvrx.mocking.printer.AutoValueTypePrinter

This looks for classes generated via AutoValue, indicated by the class prefix GENERATED_PREFIX. When an autovalue class is found, code to reconstruct it is generated by reflectively accessing the Builder and its setter functions.

com.airbnb.mvrx.mocking.BuildConfig
com.airbnb.mvrx.mocking.BuildConfig
com.airbnb.mvrx.mocking.printer.ConstructorCodeGenerator

This utility is used to generate the code need to construct an object. It is useful for printing out a MavericksState instance's constructor code when setting up a test for that state.

com.airbnb.mvrx.mocking.DataClassSetDsl

When a lambda has a receiver that extends this class it can make use of this special DSL syntax for changing properties on a data class. This syntax makes it easier to change deeply nested properties.

com.airbnb.mvrx.mocking.EmptyMavericksViewMocks
com.airbnb.mvrx.mocking.EmptyMocks

This placeholder can be used as a NO-OP implementation of MockableMavericksView.provideMocks.

com.airbnb.mvrx.mocking.FiveStatesBuilder
com.airbnb.mvrx.mocking.FiveViewModelMockBuilder
com.airbnb.mvrx.mocking.FourStatesBuilder
com.airbnb.mvrx.mocking.FourViewModelMockBuilder
kotlin.collections.List (extensions in package com.airbnb.mvrx.mocking)
com.airbnb.mvrx.mocking.MavericksMock

Defines a unique variation of a View's state for testing purposes.

com.airbnb.mvrx.mocking.printer.MavericksMockPrinter

This registers a Broadcast receiver on the MavericksView (only in debug mode) that listens for the intent action ACTION_COPY_MAVERICKS_STATE to copy mavericks state to files on device.

com.airbnb.mvrx.mocking.MavericksViewMocks

Defines a set of mocks for a Mavericks view.

com.airbnb.mvrx.mocking.MockableMavericks

Entry point for setting up Mavericks for the app in a mockable way.

com.airbnb.mvrx.mocking.MockableMavericksStateStore

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

com.airbnb.mvrx.mocking.MockableMavericksView
com.airbnb.mvrx.mocking.MockableMavericksViewModelConfig
com.airbnb.mvrx.mocking.MockableStateStore
com.airbnb.mvrx.mocking.MockBehavior

Different types of mock setups that can be provided.

com.airbnb.mvrx.mocking.MockBuilder
com.airbnb.mvrx.mocking.MockedView
com.airbnb.mvrx.mocking.MockedViewProvider
com.airbnb.mvrx.mocking.MockMavericksViewModelConfigFactory
com.airbnb.mvrx.mocking.printer.MockPrinterConfiguration

Set configuration details for how mock state is generated.

com.airbnb.mvrx.mocking.MockState

A mocked State value and a reference to the ViewModel that the State is intended for.

com.airbnb.mvrx.mocking.MockStateHolder

Used to mock the initial state value of a viewmodel.

com.airbnb.mvrx.mocking.MockViewModelDelegateFactory

This delegate factory creates ViewModels that are optionally mockable, as configured by MockMavericksViewModelConfigFactory.mockBehavior.

com.airbnb.mvrx.mocking.SevenStatesBuilder
com.airbnb.mvrx.mocking.SevenViewModelMockBuilder
com.airbnb.mvrx.mocking.SingleViewModelMockBuilder

Provides a DSL for defining variations to the default mock state.

com.airbnb.mvrx.mocking.SixStatesBuilder
com.airbnb.mvrx.mocking.SixViewModelMockBuilder
com.airbnb.mvrx.mocking.SynchronousMavericksStateStore

This acts as a functional state store, but all updates happen synchronously. The intention of this is to allow state changes in tests to be tracked synchronously.

com.airbnb.mvrx.mocking.ThreeStatesBuilder
com.airbnb.mvrx.mocking.ThreeViewModelMockBuilder
com.airbnb.mvrx.mocking.TwoStatesBuilder

Helper to provide mock state definitions for multiple view models.

com.airbnb.mvrx.mocking.TwoViewModelMockBuilder
com.airbnb.mvrx.mocking.printer.TypePrinter

This interface defines how to generate mock code for a custom object type.