@API(status=EXPERIMENTAL,
since="1.3.4")
public interface PropertyAttributes
This object can be used to query, set or change a property's attribute during the AroundPropertyHook lifecycle hook.
Modifier and Type | Method and Description |
---|---|
java.util.Optional<AfterFailureMode> |
afterFailure()
The after failure mode of the property at hand.
|
java.util.Optional<EdgeCasesMode> |
edgeCases()
The edge cases mode of the property at hand.
|
java.util.Optional<GenerationMode> |
generation()
The generation mode of the property at hand.
|
java.util.Optional<java.lang.Integer> |
maxDiscardRatio()
The maximum allowed discard ration in the property at hand.
|
java.util.Optional<java.lang.String> |
seed()
The random seed used when running the property at hand.
|
void |
setAfterFailure(AfterFailureMode afterFailureMode) |
void |
setEdgeCases(EdgeCasesMode edgeCasesMode) |
void |
setGeneration(GenerationMode generationMode) |
void |
setMaxDiscardRatio(java.lang.Integer maxDiscardRatio) |
void |
setSeed(java.lang.String seed) |
void |
setShrinking(ShrinkingMode shrinkingMode) |
void |
setStereotype(java.lang.String stereotype) |
void |
setTries(java.lang.Integer tries) |
java.util.Optional<ShrinkingMode> |
shrinking()
The shrinking mode of the property at hand.
|
java.util.Optional<java.lang.String> |
stereotype()
The stereotype of the property at hand.
|
java.util.Optional<java.lang.Integer> |
tries()
The number of tries to be run in the property at hand.
|
java.util.Optional<java.lang.Integer> tries()
jqwik may override an explicit tries value if exhaustive or data-driven generation is chosen.
java.util.Optional<java.lang.Integer> maxDiscardRatio()
java.util.Optional<ShrinkingMode> shrinking()
java.util.Optional<GenerationMode> generation()
java.util.Optional<AfterFailureMode> afterFailure()
java.util.Optional<EdgeCasesMode> edgeCases()
java.util.Optional<java.lang.String> stereotype()
java.util.Optional<java.lang.String> seed()
void setTries(java.lang.Integer tries)
void setMaxDiscardRatio(java.lang.Integer maxDiscardRatio)
void setShrinking(ShrinkingMode shrinkingMode)
void setGeneration(GenerationMode generationMode)
void setAfterFailure(AfterFailureMode afterFailureMode)
void setEdgeCases(EdgeCasesMode edgeCasesMode)
void setStereotype(java.lang.String stereotype)
void setSeed(java.lang.String seed)