@API(value=Experimental) public interface TestInstancePostProcessor extends Extension
TestInstancePostProcessor 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(Object testInstance,
ExtensionContext context)
Callback for post-processing the supplied test instance.
|
void postProcessTestInstance(Object testInstance, ExtensionContext context) throws Exception
testInstance - the instance to post-process; never nullcontext - the current extension context; never nullException