FactoryListProperty - xgouchet/Elmyr GitHub Wiki
class FactoryListProperty<T : Any> : ForgeryProperty<List<T>>
This class implements a ReadOnlyProperty, forging a random list of object with a factory provided to the forge.
Parameters
T - the type of the object to forge
clazz - the class of the type to be forged
Constructors
<init>
FactoryListProperty(clazz: Class<T>)
This class implements a ReadOnlyProperty, forging a random list of object with a factory provided to the forge.
Parameters
T - the type of the object to forge
clazz - the class of the type to be forged
Functions
getForgery
fun getForgery(forge: Forge): List<T>
Inheritdoc
Companion Object Functions
factoryListForgery
fun <reified T : Any> factoryListForgery(): ForgeryProperty<List<T>>
Creates a ReadOnlyProperty that will forge a random list of object with a factory provided to the Forge.
Parameters
T - the type of the object to forge