add Generator
abstract fun <T : Any> addGenerator(clazz: KClass<T>, factory: PublicApi.GeneratorFactory<T>, qualifier: PublicApi.Qualifier? = null): PublicApi.Configuration
Content copied to clipboard
Adds a custom Generator to Fixture Generator. However build in types cannot be overridden.
Return
Configuration the current instance of the Configuration.
See also
Parameters
T
the type which the Generator is referring to.
clazz
a KClass the generator is referring to.
factory
the Factory for the Generator.
qualifier
optional Qualifier which can be to differ between flavours of the same type.