Package net.jqwik.api.lifecycle
Schnittstelle RegistrarHook
- Alle Superschnittstellen:
LifecycleHook
- Funktionsschnittstelle:
- Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.
@API(status=MAINTAINED,
since="1.4.0")
@FunctionalInterface
public interface RegistrarHook
extends LifecycleHook
Use 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.
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypSchnittstelleBeschreibungstatic interface
A short-lived object used for registering concrete hook implementation classes. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
registerHooks
(RegistrarHook.Registrar registrar) This method will be called during hook registration, i.e. before any test has been started.Von Schnittstelle geerbte Methoden net.jqwik.api.lifecycle.LifecycleHook
appliesTo, propagateTo
-
Methodendetails
-
registerHooks
This method will be called during hook registration, i.e. before any test has been started. It allows to register as many other hook implementations as necessary.- Parameter:
registrar
- the registrar to use for registering lifecycle hooks
-