Package net.jqwik.api.lifecycle
Interface BeforeContainerHook
- 
- All Superinterfaces:
- LifecycleHook
 - All Known Subinterfaces:
- AroundContainerHook
 - Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
 
 @API(status=EXPERIMENTAL, since="1.2.4") @FunctionalInterface public interface BeforeContainerHook extends LifecycleHookImplement 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.
- 
- 
Field SummaryFields Modifier and Type Field Description static BeforeContainerHookDO_NOTHING
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidbeforeContainer(ContainerLifecycleContext context)The code of this method will be run exactly once before any property method or child container.default intbeforeContainerProximity()The higher the value, the closer to the actual property methods, i.e. the later it will be run.default intcompareTo(BeforeContainerHook other)- 
Methods inherited from interface net.jqwik.api.lifecycle.LifecycleHookappliesTo, propagateTo
 
- 
 
- 
- 
- 
Field Detail- 
DO_NOTHING@API(status=INTERNAL) static final BeforeContainerHook DO_NOTHING 
 
- 
 - 
Method Detail- 
beforeContainervoid beforeContainer(ContainerLifecycleContext context) throws java.lang.Throwable The code of this method will be run exactly once before any property method or child container.- Parameters:
- context- The container's context object
- Throws:
- java.lang.Throwable
 
 - 
beforeContainerProximitydefault int beforeContainerProximity() The higher the value, the closer to the actual property methods, i.e. the later it will be run. Default value is 0.Values greater than -10 will make it run after methods annotated with BeforeContainer, values smaller than -10 will make it run before. - Returns:
- an integer value
 
 - 
compareTo@API(status=INTERNAL) default int compareTo(BeforeContainerHook other) 
 
- 
 
-