Package dev.orne.test.rnd.it
Class CustomBasicGenerator
java.lang.Object
dev.orne.test.rnd.AbstractGenerator
dev.orne.test.rnd.it.CustomBasicGenerator
- All Implemented Interfaces:
Generator
Custom generator for an enumeration type that prevents generation of an
undesired value.
Registered through META-INF/services/dev.orne.test.rnd.Generator
SPI.
Generator has no Priority annotation, so gets the default priority
(0), which is greater than built in
enumeration values generator
(-2000) and therefore
takes precedence for generation of the supported types.
- Since:
- 0.1
- Version:
- 1.0, 2022-10
- Author:
- (w) Iker Hernaez
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTest base bean.static interfaceTest interface.static classTest extended bean. -
Field Summary
Fields inherited from class dev.orne.test.rnd.AbstractGenerator
DEFAULT_NULL_PROBABILITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TdefaultValue(@NotNull Class<T> type) <T> TrandomValue(@NotNull Class<T> type) booleanMethods inherited from class dev.orne.test.rnd.AbstractGenerator
assertSupported, equals, getNullProbability, hashCode, nullableDefaultValue, nullableRandomValue, randomNull, setNullProbability, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.orne.test.rnd.Generator
asParameterizable, getPriority
-
Constructor Details
-
CustomBasicGenerator
public CustomBasicGenerator()Creates a new instance.
-
-
Method Details
-
supports
-
defaultValue
-
randomValue
-