Package net.jqwik.api
Enum Class ShrinkingMode
- All Implemented Interfaces:
Serializable
,Comparable<ShrinkingMode>
,Constable
The shrinking mode defines the shrinking behaviour of a property.
It can be set in Property.shrinking() for any property method; default is BOUNDED.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ShrinkingMode
Returns the enum constant of this class with the specified name.static ShrinkingMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OFF
No shrinking for falsified values. -
BOUNDED
Shrinking is tried to a depth of 1000 steps maximum per value. If shrinking has not finished by then, the best found value is taken and bounded shrinking is reported through JUnit's reporting mechanism. -
FULL
Shrinking continues until no smaller value can be found that also falsifies the property. This might take very long or not end at all in rare cases. -
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
-