mvrx-mocking / com.airbnb.mvrx.mocking.printer / MockPrinterConfiguration / customTypePrinters

customTypePrinters

val customTypePrinters: List<TypePrinter<*>>

Define functions for generating code for a custom class.

This allows the mock printer to generate code to construct instances of a custom type. By default, primitive types, enums, collections, Kotlin 'object's, AutoValue classes, and Kotlin data classes are supported.

These are called in order. The first one to return true from TypePrinter.acceptsObject will be used, otherwise a default implementation will be used for the object.