Package net.jqwik.api
Enum Class GenerationMode
- All Implemented Interfaces:
Serializable
,Comparable<GenerationMode>
,Constable
The generation mode defines the generation behaviour of a property.
It can be set in Property.generation() for any property method; default is AUTO.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionLet jqwik choose which generation mode it prefers: If all arbitraries provide exhaustive generators and if the multiplication of all maxCount() values is ≤ Property.tries() use EXHAUSTIVE If the property has a FromData annotation use DATA_DRIVEN In all other cases use RANDOMIZEDUse data specified in FromData annotationUse exhaustive generation.Use randomized value generation. -
Method Summary
Modifier and TypeMethodDescriptionstatic GenerationMode
Returns the enum constant of this class with the specified name.static GenerationMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RANDOMIZED
Use randomized value generation. -
EXHAUSTIVE
Use exhaustive generation. Only possible if all used arbitraries can provide exhaustive generators. -
DATA_DRIVEN
Use data specified in FromData annotation -
AUTO
Let jqwik choose which generation mode it prefers:- If all arbitraries provide exhaustive generators and if the multiplication of all maxCount() values is ≤ Property.tries() use EXHAUSTIVE
- If the property has a FromData annotation use DATA_DRIVEN
- In all other cases use RANDOMIZED
-
NOT_SET
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-