Package net.jqwik.api.lifecycle
Schnittstelle MethodLifecycleContext
- Alle Superschnittstellen:
LifecycleContext
- Alle bekannten Unterschnittstellen:
PropertyLifecycleContext
,TryLifecycleContext
@API(status=EXPERIMENTAL,
since="1.7.4")
public interface MethodLifecycleContext
extends LifecycleContext
The context information for all method-based lifecyle contexts.
- Siehe auch:
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungClass
<?> The container class in which the current property method is running.The method that defines the current property or example.The current instance of the property's container class.The list of the current instance of the property's container class and all its outer objects if it is in a nested class.Von Schnittstelle geerbte Methoden net.jqwik.api.lifecycle.LifecycleContext
findAnnotation, findAnnotationsInContainer, findRepeatableAnnotations, label, newInstance, optionalContainerClass, optionalElement, reporter, resolveParameter, wrapReporter
-
Methodendetails
-
targetMethod
The method that defines the current property or example.- Gibt zurück:
- a Method instance
-
containerClass
The container class in which the current property method is running.Most of the time that's also the defining class. It differs when running properties that are defined in a super class or an implemented interface.
- Gibt zurück:
- a Class instance
-
testInstance
The current instance of the property's container class. There is exactly one instance per property method.- Gibt zurück:
- an instance of the container class in which the current property method is running
-
testInstances
The list of the current instance of the property's container class and all its outer objects if it is in a nested class. The result of testInstance() is the last in the list.- Gibt zurück:
- List of instances starting from outer-most to inner-most class
-