Package net.jqwik.api.lifecycle
Schnittstelle PropertyAttributes
@API(status=MAINTAINED,
since="1.3.4")
public interface PropertyAttributes
Represents a property method's attributes which are set (or not)
in attributes of the Property annotation.
This object can be used to query, set or change a property's attribute during the AroundPropertyHook lifecycle hook.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungThe after failure mode of the property at hand.The edge cases mode of the property at hand.The generation mode of the property at hand.The maximum allowed discard ration in the property at hand.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
(Integer maxDiscardRatio) void
void
setShrinking
(ShrinkingMode shrinkingMode) void
setStereotype
(String stereotype) void
void
setWhenFixedSeed
(FixedSeedMode fixedSeedMode) The shrinking mode of the property at hand.The stereotype of the property at hand.tries()
The number of tries to be run in the property at hand.The fixed seed mode of the property at hand.
-
Methodendetails
-
tries
The number of tries to be run in the property at hand. Only present when set explicitly through Property.tries() or setTries(Integer).jqwik may override an explicit tries value if exhaustive or data-driven generation is chosen.
- Gibt zurück:
- optional number of tries
-
maxDiscardRatio
The maximum allowed discard ration in the property at hand. Only present when set explicitly through Property.maxDiscardRatio() or setMaxDiscardRatio(Integer).- Gibt zurück:
- optional maximum discard ratio
-
shrinking
Optional<ShrinkingMode> shrinking()The shrinking mode of the property at hand. Only present when set explicitly through Property.shrinking() or setShrinking(ShrinkingMode).- Gibt zurück:
- optional shrinking mode
-
generation
Optional<GenerationMode> generation()The generation mode of the property at hand. Only present when set explicitly through Property.generation() or setGeneration(GenerationMode).- Gibt zurück:
- optional generation mode
-
afterFailure
Optional<AfterFailureMode> afterFailure()The after failure mode of the property at hand. Only present when set explicitly through Property.afterFailure() or setAfterFailure(AfterFailureMode).- Gibt zurück:
- optional after failure mode
-
edgeCases
Optional<EdgeCasesMode> edgeCases()The edge cases mode of the property at hand. Only present when set explicitly through Property.edgeCases() or setEdgeCases(EdgeCasesMode).- Gibt zurück:
- optional edge cases mode
-
stereotype
The stereotype of the property at hand. Only present when set explicitly through Property.stereotype() or setStereotype(String).- Gibt zurück:
- optional stereotype
-
seed
The random seed used when running the property at hand. Only present when set explicitly through Property.seed() or setSeed(String).- Gibt zurück:
- optional random seed
-
whenFixedSeed
The fixed seed mode of the property at hand. Only present when set explicitly through Property.whenFixedSeed() ()} or setWhenFixedSeed(FixedSeedMode).- Gibt zurück:
- optional fixed seed mode
-
setTries
-
setMaxDiscardRatio
-
setShrinking
-
setGeneration
-
setAfterFailure
-
setEdgeCases
-
setStereotype
-
setSeed
-
setWhenFixedSeed
-