@API(status=EXPERIMENTAL,
since="1.0")
public interface PropertyExecutionResult
Modifier and Type | Interface and Description |
---|---|
static class |
PropertyExecutionResult.Status
Status of executing a single test or container.
|
Modifier and Type | Method and Description |
---|---|
int |
countChecks() |
int |
countTries() |
java.util.Optional<java.util.List<java.lang.Object>> |
falsifiedSample() |
PropertyExecutionResult |
mapTo(PropertyExecutionResult.Status newStatus,
java.lang.Throwable throwable) |
default PropertyExecutionResult |
mapToAborted(java.lang.Throwable throwable) |
default PropertyExecutionResult |
mapToFailed(java.lang.String message) |
default PropertyExecutionResult |
mapToFailed(java.lang.Throwable throwable) |
default PropertyExecutionResult |
mapToSuccessful() |
java.util.Optional<java.lang.String> |
seed() |
PropertyExecutionResult.Status |
status() |
java.util.Optional<java.lang.Throwable> |
throwable()
Will return
Optional.empty() if status is anything but FAILED. |
java.util.Optional<java.lang.String> seed()
java.util.Optional<java.util.List<java.lang.Object>> falsifiedSample()
PropertyExecutionResult.Status status()
java.util.Optional<java.lang.Throwable> throwable()
Optional.empty()
if status is anything but FAILED.
If FAILED the optional MUST contain a throwable.@API(status=EXPERIMENTAL, since="1.2.4") int countChecks()
@API(status=EXPERIMENTAL, since="1.2.4") int countTries()
@API(status=EXPERIMENTAL, since="1.2.4") PropertyExecutionResult mapTo(PropertyExecutionResult.Status newStatus, java.lang.Throwable throwable)
@API(status=EXPERIMENTAL, since="1.2.4") default PropertyExecutionResult mapToSuccessful()
@API(status=EXPERIMENTAL, since="1.2.4") default PropertyExecutionResult mapToFailed(java.lang.Throwable throwable)
@API(status=EXPERIMENTAL, since="1.2.4") default PropertyExecutionResult mapToFailed(java.lang.String message)
@API(status=EXPERIMENTAL, since="1.2.4") default PropertyExecutionResult mapToAborted(java.lang.Throwable throwable)