Package mocka.generator
Class EntityGenerator<T>
java.lang.Object
mocka.generator.AbstractGenerator<T>
mocka.generator.EntityGenerator<T>
- All Implemented Interfaces:
Generator<T>
-
Field Summary
Fields inherited from class mocka.generator.AbstractGenerator
key, randomProvider, type -
Constructor Summary
ConstructorsConstructorDescriptionEntityGenerator(Class<T> entity, EntityInstanceCreator entityInstanceCreator) -
Method Summary
Modifier and TypeMethodDescriptionget()Returns a random entity instance with the default GeneratorType.SELFget(GenerateType generateType) Returns a random entity instance with the given GenerateTypeReturns a random entity instance with the given ORMType and the default GeneratorType.SELFget(ORMType ormType, GenerateType generateType) Returns a random entity instance with the given ORMType and GenerateTypeMethods inherited from class mocka.generator.AbstractGenerator
getKey, getType
-
Constructor Details
-
EntityGenerator
-
-
Method Details
-
get
Returns a random entity instance with the default GeneratorType.SELF -
get
Returns a random entity instance with the given GenerateType -
get
Returns a random entity instance with the given ORMType and the default GeneratorType.SELF -
get
Returns a random entity instance with the given ORMType and GenerateType
-