@FunctionalInterface @API(value=Experimental) public interface AfterTestExecutionCallback extends Extension
AfterTestExecutionCallback
defines the API for Extensions
that wish to provide additional behavior to tests immediately
after each test has been executed.
Such callbacks will be invoked before any user defined teardown methods (e.g.,
@AfterEach
methods).
Concrete implementations often implement BeforeTestExecutionCallback
as well.
Implementations must provide a no-args constructor.
Test
,
BeforeTestExecutionCallback
,
BeforeEachCallback
,
AfterEachCallback
,
BeforeAllCallback
,
AfterAllCallback
Modifier and Type | Method and Description |
---|---|
void |
afterTestExecution(TestExtensionContext context)
Callback that is invoked immediately after each test has been executed.
|
void afterTestExecution(TestExtensionContext context) throws Exception
context
- the current extension context; never null
Exception