Package net.jqwik.api.lifecycle
Interface PropertyExecutionResult
- 
 @API(status=MAINTAINED, since="1.4.0") public interface PropertyExecutionResultRepresents the result of running a property.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classPropertyExecutionResult.StatusStatus of executing a single test or container.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description intcountChecks()The number of tries for which parameters were created and the property method run.intcountTries()The number of tries for which parameters were created and the property method run and which were not aborted, e.g. through a failing assumption.java.util.Optional<java.util.List<java.lang.Object>>falsifiedParameters()The potentially shrunk list of parameters that falsified this property.PropertyExecutionResultmapTo(PropertyExecutionResult.Status newStatus, java.lang.Throwable throwable)Use to change the status of a property execution result in a AroundPropertyHook.default PropertyExecutionResultmapToAborted(java.lang.Throwable throwable)Use to change the status of a property execution to PropertyExecutionResult.Status.ABORTED in a AroundPropertyHook.default PropertyExecutionResultmapToFailed(java.lang.String message)Use to change the status of a successful property execution to PropertyExecutionResult.Status.FAILED in a AroundPropertyHook.default PropertyExecutionResultmapToFailed(java.lang.Throwable throwable)Use to change the status of a successful property execution to PropertyExecutionResult.Status.FAILED in a AroundPropertyHook.default PropertyExecutionResultmapToSuccessful()Use to change the status of a failed property to PropertyExecutionResult.Status.SUCCESSFUL in a AroundPropertyHook.java.util.Optional<FalsifiedSample>originalSample()Return the original falsified sample if there was one.java.util.Optional<java.lang.String>seed()The seed used to generate randomized parameters.java.util.Optional<ShrunkFalsifiedSample>shrunkSample()Return the shrunk falsified sample if successful shrinking took place.PropertyExecutionResult.Statusstatus()The final status of this propertyjava.util.Optional<java.lang.Throwable>throwable()Will returnOptional.empty()if status is anything but FAILED.
 
- 
- 
- 
Method Detail- 
seedjava.util.Optional<java.lang.String> seed() The seed used to generate randomized parameters.- Returns:
- an optional String
 
 - 
falsifiedParametersjava.util.Optional<java.util.List<java.lang.Object>> falsifiedParameters() The potentially shrunk list of parameters that falsified this property.The parameter list returned contains the actual parameters used during the property run. If one or more parameters were changed during the run, this change is visible here. - Returns:
- an optional list of parameters
 
 - 
statusPropertyExecutionResult.Status status() The final status of this property- Returns:
- status enum
 
 - 
throwablejava.util.Optional<java.lang.Throwable> throwable() Will returnOptional.empty()if status is anything but FAILED. If FAILED the optional MUST contain a throwable.
 - 
countChecksint countChecks() The number of tries for which parameters were created and the property method run.- Returns:
- an number equal to or greater than 0
 
 - 
countTriesint countTries() The number of tries for which parameters were created and the property method run and which were not aborted, e.g. through a failing assumption.- Returns:
- an number equal to or greater than 0
 
 - 
originalSample@API(status=EXPERIMENTAL, since="1.3.5") java.util.Optional<FalsifiedSample> originalSample()Return the original falsified sample if there was one.- Returns:
- an optional falsified sample
 
 - 
shrunkSample@API(status=EXPERIMENTAL, since="1.3.5") java.util.Optional<ShrunkFalsifiedSample> shrunkSample()Return the shrunk falsified sample if successful shrinking took place.- Returns:
- an optional falsified sample
 
 - 
mapToPropertyExecutionResult mapTo(PropertyExecutionResult.Status newStatus, java.lang.Throwable throwable) Use to change the status of a property execution result in a AroundPropertyHook.- Parameters:
- newStatus- Status enum
- throwable- Throwable object or null
- Returns:
- the changed result object
 
 - 
mapToSuccessfuldefault PropertyExecutionResult mapToSuccessful() Use to change the status of a failed property to PropertyExecutionResult.Status.SUCCESSFUL in a AroundPropertyHook.- Returns:
- the changed result object
 
 - 
mapToFaileddefault PropertyExecutionResult mapToFailed(java.lang.Throwable throwable) Use to change the status of a successful property execution to PropertyExecutionResult.Status.FAILED in a AroundPropertyHook.- Parameters:
- throwable- Throwable object or null
- Returns:
- the changed result object
 
 - 
mapToFaileddefault PropertyExecutionResult mapToFailed(java.lang.String message) Use to change the status of a successful property execution to PropertyExecutionResult.Status.FAILED in a AroundPropertyHook.- Parameters:
- message- a String that serves as message of an assertion error
- Returns:
- the changed result object
 
 - 
mapToAborteddefault PropertyExecutionResult mapToAborted(java.lang.Throwable throwable) Use to change the status of a property execution to PropertyExecutionResult.Status.ABORTED in a AroundPropertyHook.- Parameters:
- throwable- Throwable object or null
- Returns:
- the changed result object
 
 
- 
 
-