Uses of Interface
dev.orne.test.rnd.Generator
Packages that use Generator
Package
Description
Base package for random value generators system.
Package for built in
Generator
implementations.Package for parameterizable generators system.
-
Uses of Generator in dev.orne.test.rnd
Subinterfaces of Generator in dev.orne.test.rndModifier and TypeInterfaceDescriptioninterface
Extension ofGenerator
for generators that only provide one type of values.Classes in dev.orne.test.rnd that implement GeneratorModifier and TypeClassDescriptionclass
Abstract basic implementation ofGenerator
.class
Abstract implementation ofTypedGenerator
.static final class
Cache value for missing generators for a value type.Fields in dev.orne.test.rnd with type parameters of type GeneratorModifier and TypeFieldDescriptionstatic final Comparator<Generator>
Generators.COMPARATOR
The generator comparator by priority.Methods in dev.orne.test.rnd that return GeneratorModifier and TypeMethodDescriptionstatic Generator
Generators.getGenerator
(@NotNull Class<?> type) Returns the generator to use for the specified value type.Methods in dev.orne.test.rnd that return types with arguments of type GeneratorModifier and TypeMethodDescriptionGenerators.getRegisteredGenerators()
Returns an unmodifiable list with the registered generators.Methods in dev.orne.test.rnd with parameters of type GeneratorModifier and TypeMethodDescriptionstatic void
Adds the specified generators to the registered generators.static void
Removes the specified generators from the registered generators.Method parameters in dev.orne.test.rnd with type arguments of type GeneratorModifier and TypeMethodDescriptionstatic void
Generators.register
(@NotNull Collection<Generator> generators) Adds the specified generators to the registered generators.static void
Generators.remove
(@NotNull Collection<Generator> generators) Removes the specified generators from the registered generators. -
Uses of Generator in dev.orne.test.rnd.generators
Classes in dev.orne.test.rnd.generators that implement GeneratorModifier and TypeClassDescriptionclass
Abstract generator implementation for primitive types.class
Generator of beans annotated withCurrency
.class
Generator of array values.class
Generator ofBigDecimal
andNumber
values.class
Generator ofBigInteger
values.class
Generator ofboolean
andBoolean
values.class
Generator ofbyte
andByte
values.class
Generator ofCalendar
values.class
Generator ofchar
andCharacter
values.class
Generator ofCharset
values.class
Generator ofChronology
values.class
Generator ofClock
values.class
Generator ofCurrency
values.class
Generator ofDate
values.class
Generator ofdouble
andDouble
values.class
Generator ofDuration
values.class
Generator of enumeration types values.class
Generator ofFile
values.class
Generator offloat
andFloat
values.class
Generator ofInstant
values.class
Generator ofint
andInteger
values.class
Generator ofList
values.class
Generator ofLocalDate
values.class
Generator ofLocalDateTime
values.class
Generator ofLocale
values.class
Generator ofLocalTime
values.class
Generator oflong
andLong
values.class
Generator ofMap
values.class
Generator ofMonthDay
values.class
Generator ofOffsetDateTime
values.class
Generator ofOffsetTime
values.class
Generator ofPath
values.class
Generator ofPeriod
values.class
Generator ofSet
values.class
Generator ofshort
andShort
values.class
Generator ofString
andCharSequence
values.class
Generator ofTimeZone
values.class
Generator ofURI
values.class
Generator ofURL
values.class
Generator ofUUID
values.class
Generator ofYear
values.class
Generator ofYearMonth
values.class
Generator ofZonedDateTime
values.class
Generator ofZoneId
values.class
Generator ofZoneOffset
values.Methods in dev.orne.test.rnd.generators that return GeneratorModifier and TypeMethodDescriptionprotected @NotNull Generator
AnnotatedMethodGenerator.discoverAnnotatedGenerator
(@NotNull Class<?> targetType) Finds a constructor or static method annotated withGeneratorMethod
in the specified target class.protected Generator
AnnotatedMethodGenerator.getAnnotatedGenerator
(@NotNull Class<?> targetType) Returns annotated generator to be used to create random instances of the specified target class.Methods in dev.orne.test.rnd.generators with parameters of type GeneratorModifier and TypeMethodDescriptionprotected @NotNull Object
ArrayGenerator.randomArray
(@NotNull Class<?> componentType, @NotNull Generator generator) Returns a random sized array of the specified component type.protected Object
ArrayGenerator.randomNullablesArray
(@NotNull Class<?> componentType, @NotNull Generator generator) Returns a random sized array of the specified component type allowingnull
component values. -
Uses of Generator in dev.orne.test.rnd.params
Subinterfaces of Generator in dev.orne.test.rnd.paramsModifier and TypeInterfaceDescriptioninterface
Interface for random value generators with optional parameters.interface
Extension ofParameterizableGenerator
for generators that only provide one type of values.Classes in dev.orne.test.rnd.params that implement GeneratorModifier and TypeClassDescriptionclass
Abstract implementation ofParameterizableGenerator
.class
Abstract implementation ofTypedParameterizableGenerator
.class
Generator that calls a constructor with generated parameters to generate values of the target type.class
Abstract generator that calls an executable with generated parameters to generate values of the target type.class
Generator that calls a static factory method with generated parameters to generate values of the target type.Methods in dev.orne.test.rnd.params that return GeneratorModifier and TypeMethodDescriptionprotected @NotNull Generator
AbstractTargetedGenerator.getGenerator()
Returns the generator to use.Constructors in dev.orne.test.rnd.params with parameters of type GeneratorModifierConstructorDescriptionprotected
AbstractTargetedGenerator
(@NotNull Class<T> valueType, @NotNull Generator generator) Creates a new instance.protected
ConstructorParameterTypeGenerator
(@NotNull Class<T> valueType, @NotNull Constructor<?> constructor, int parameterIndex, @NotNull Generator generator) Creates a new instance.protected
MethodParameterTypeGenerator
(@NotNull Class<T> valueType, @NotNull Method method, int parameterIndex, @NotNull Generator generator) Creates a new instance.protected
MethodReturnTypeGenerator
(@NotNull Class<T> valueType, @NotNull Method method, @NotNull Generator generator) Creates a new instance.protected
ParameterTypeGenerator
(@NotNull Class<T> valueType, @NotNull Parameter parameter, @NotNull Generator generator) Creates a new instance.protected
PropertyTypeGenerator
(@NotNull Class<T> valueType, @NotNull Class<?> validationClass, @NotNull Field property, @NotNull Generator generator) Creates a new instance.