Skip to content

ForgeryFactory

Xavier Gouchet edited this page Dec 14, 2019 · 2 revisions

interface ForgeryFactory<out T : Any>

A ForgeryFactory is a class able to generate an object of the desired type based on a given Forge instance.

Parameters

T - the type of the object to forge

Functions

getForgery

abstract fun getForgery(forge: Forge): T

Parameters

forge - the forge instance to use to generate a forgery

Return a new instance of type T, randomly generated with the help of the forge instance