Package de.tum.in.test.api.jqwik
Class JqwikStrictTimeoutExtension
java.lang.Object
de.tum.in.test.api.jqwik.JqwikStrictTimeoutExtension
- All Implemented Interfaces:
net.jqwik.api.lifecycle.AroundPropertyHook,net.jqwik.api.lifecycle.LifecycleHook
public class JqwikStrictTimeoutExtension
extends java.lang.Object
implements net.jqwik.api.lifecycle.AroundPropertyHook
This class manages the
StrictTimeout annotation and how it is
processed, using
Assertions.assertTimeoutPreemptively(Duration, org.junit.jupiter.api.function.ThrowingSupplier)
Adaption for jqwik.
- Author:
- Christian Femers
-
Field Summary
-
Constructor Summary
Constructors Constructor Description JqwikStrictTimeoutExtension() -
Method Summary
Modifier and Type Method Description net.jqwik.api.lifecycle.PropertyExecutionResultaroundProperty(net.jqwik.api.lifecycle.PropertyLifecycleContext context, net.jqwik.api.lifecycle.PropertyExecutor property)intaroundPropertyProximity()
-
Constructor Details
-
JqwikStrictTimeoutExtension
public JqwikStrictTimeoutExtension()
-
-
Method Details
-
aroundPropertyProximity
public int aroundPropertyProximity()- Specified by:
aroundPropertyProximityin interfacenet.jqwik.api.lifecycle.AroundPropertyHook
-
aroundProperty
public net.jqwik.api.lifecycle.PropertyExecutionResult aroundProperty(net.jqwik.api.lifecycle.PropertyLifecycleContext context, net.jqwik.api.lifecycle.PropertyExecutor property) throws java.lang.Throwable- Specified by:
aroundPropertyin interfacenet.jqwik.api.lifecycle.AroundPropertyHook- Throws:
java.lang.Throwable
-