Package net.jqwik.api.lifecycle
Annotation Type BeforeContainer
-
@Target({ANNOTATION_TYPE,METHOD}) @Retention(RUNTIME) @API(status=EXPERIMENTAL, since="1.2.4") public @interface BeforeContainer
Annotate static methods of a container class with@BeforeContainer
to have them run exactly once before any of its properties or any lifecycle methods from embedded containers will be run.@BeforeContainer
methods must bestatic void
and they cannot have parameters.@BeforeContainer
methods are inherited from superclasses and implemented interfaces as long as they are not hidden or overridden.The execution order of multiple
@BeforeContainer
methods within the same container is not guaranteed and might change.- See Also:
AfterContainer