@API(status=EXPERIMENTAL, since="1.2.3") public interface TryLifecycleContext extends LifecycleContext
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
containerClass()
The container class in which the current property method is running.
|
java.lang.reflect.Method |
targetMethod()
The method that defines the current property or example.
|
java.lang.Object |
testInstance()
The current instance of the property's container class.
|
findAnnotation, findAnnotationsInContainer, label, newInstance, optionalContainerClass, optionalElement, reporter, resolveParameter
@API(status=EXPERIMENTAL, since="1.2.7") java.lang.reflect.Method targetMethod()
@API(status=EXPERIMENTAL, since="1.2.7") java.lang.Class<?> containerClass()
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.
@API(status=EXPERIMENTAL, since="1.2.7") java.lang.Object testInstance()
Mind that all tries of a property share the same test instance.