Interface Summary Interface Description AfterContainerHookImplement this hook to define behaviour for a container (class or whole test suite) that should be run exactly once after of its property methods and child containers. AroundContainerHook AroundPropertyHookImplement this hook to define behaviour that should "wrap" the execution of a property, i.e., do something directly before or after running a property - or both. AroundTryHookImplement this hook to define behaviour that should "wrap" the execution of a single try, i.e., do something directly before or after executing a property method with a given list of parameters. BeforeContainerHookImplement this hook to define behaviour for a container (class or whole test suite) that should be run exactly once before any of its property methods and child containers. ContainerLifecycleContextThe context of a test container (a container class or the whole jqwik suite). FalsifiedSampleA falsified sample is the collection of data that could be falsified during a property run. LifecycleContextSupertype of all lifecycle context interfaces. LifecycleHookThis is the supertype of all lifecycle hook interfaces. ParameterResolutionContextExperimental feature. PerProperty.Lifecycle PropertyAttributesRepresents a property method's attributes which are set (or not) in attributes of the Property annotation. PropertyExecutionResultRepresents the result of running a property. PropertyExecutorObjects of this class represent a property's execution. PropertyLifecycleContextThe context information of a property or example. RegistrarHookUse this hook if you want to apply several hook implementations that belong together but that cannot be implemented in a single class, e.g. because the same hook type must be added with different proximity or different propagation. RegistrarHook.RegistrarA short-lived object used for registering concrete hook implementation classes. ResolveParameterHookThis hook type allows to provide parameters for property methods but also to annotated lifecycle methods. ResolveParameterHook.ParameterSupplierA functional interface specialized on providing parameters to property methods and to annotated lifecycle methods. ShrunkFalsifiedSampleA shrunk falsified sample is a FalsifiedSample that results from shrinking. SkipExecutionHookUse this hook to determine if an annotated element should be skipped during a test run or not. Store<T>Experimental feature. TryExecutionResultRepresents the result of calling a property method with a list of parameters. TryExecutorExperimental feature. TryLifecycleContextThe context information of a single try of a property.
Class Summary Class Description PerProperty.PerPropertyHook SkipExecutionHook.SkipResult Store.StoreFacade
Enum Summary Enum Description LifespanDefine how long a resource, e.g. the value in a Store with the same identifier, will live: For the whole test run For the currently running property For the currently running try Any hook or collection of hooks can use this enum to allow the specification of the lifespan of resources from which it is abstracting. PropagationModeDescribes if and how a concrete registered hook is propagated to children of the element where the hook has been registered. PropertyExecutionResult.StatusStatus of executing a single test or container. TryExecutionResult.StatusStatus of running a single try.
Exception Summary Exception Description CannotFindStoreExceptionExperimental feature. CannotResolveParameterExceptionExperimental feature.
Annotation Types Summary Annotation Type Description AddLifecycleHookUse to register a concrete lifecycle hook implementation for a test element -- a container class or a property method. AfterContainerAnnotate static methods of a container class with
@AfterContainerto have them run exactly once after all of its properties or any lifecycle methods from embedded containers have been run.
AfterExampleThis is an alias of AfterProperty AfterPropertyAnnotate methods of a container class with
@AfterPropertyto have them run once after each property (or example) including properties (or examples) of embedded containers.
AfterTryAnnotate methods of a container class with
@AfterTryto have them run once after each try - the actual invocation of the property method with generated parameters - including properties of embedded containers.
BeforeContainerAnnotate static methods of a container class with
@BeforeContainerto have them run exactly once before any of its properties or any lifecycle methods from embedded containers will be run.
BeforeExampleThis is an alias of BeforeProperty BeforePropertyAnnotate methods of a container class with
@BeforePropertyto have them run once before each property (or example) including properties (or examples) of embedded containers.
BeforeTryAnnotate methods of a container class with
@BeforeTryto have them run once before each try - the actual invocation of the property method with generated parameters - including properties of embedded containers.
LifecycleHooksExperimental feature. PerPropertyAnnotate property methods of a container class with
@PerPropertyif you want to have some lifecycle control over this property alone.