withProperties

fun <T> ObjectCreator<T>.withProperties(vararg properties: KProperty1<T, Any>): ObjectCreator<T>

Includes the given properties when creating an object.

Note that each predicate is applied in addition to previously registered predicates, including ObjectCreator::withPropertyFilter, ObjectCreator::withProperties, ObjectCreator::withoutProperties, and withoutProperties.

Parameters

properties

the properties that are to be included