@API(value=Experimental) public interface InstancePostProcessor extends ExtensionPoint
InstancePostProcessor defines the API for Extensions that wish to post-process test instances.
Common use cases include injecting dependencies into the test instance, invoking custom initialization methods on the test instance, etc.
Implementations must provide a no-args constructor.
| Modifier and Type | Method and Description |
|---|---|
void |
postProcessTestInstance(TestExtensionContext context)
Callback for post-processing the test instance in the supplied
TestExtensionContext. |
void postProcessTestInstance(TestExtensionContext context) throws java.lang.Exception
TestExtensionContext.context - the current test extension contextjava.lang.Exception