Package dev.orne.test.rnd
Class MockGenerator
java.lang.Object
dev.orne.test.rnd.AbstractGenerator
dev.orne.test.rnd.MockGenerator
- All Implemented Interfaces:
Generator
Mock implementation of
Generator.- Since:
- 0.1
- Version:
- 1.0, 2022-10
- Author:
- (w) Iker Hernaez
-
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> TnullableDefaultValue(@NotNull Class<T> type) <T> TnullableRandomValue(@NotNull Class<T> type) <T> TrandomValue(@NotNull Class<T> type) booleanMethods inherited from class dev.orne.test.rnd.AbstractGenerator
assertSupported, equals, getNullProbability, hashCode, 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
-
MockGenerator
public MockGenerator()Creates a new instance.
-
-
Method Details
-
supports
-
defaultValue
-
nullableDefaultValue
- Specified by:
nullableDefaultValuein interfaceGenerator- Overrides:
nullableDefaultValuein classAbstractGenerator
-
randomValue
-
nullableRandomValue
- Specified by:
nullableRandomValuein interfaceGenerator- Overrides:
nullableRandomValuein classAbstractGenerator
-