@FunctionalInterface @API(value=Experimental) public interface AfterEachCallback extends Extension
AfterEachCallback
defines the API for Extensions
that wish to provide additional behavior to tests after each test method
has been invoked.
In this context, the term test refers to the actual test method
plus any user defined teardown methods (e.g.,
@AfterEach
methods).
Concrete implementations often implement BeforeEachCallback
as well.
Implementations must provide a no-args constructor.
AfterEach
,
BeforeEachCallback
,
BeforeTestExecutionCallback
,
AfterTestExecutionCallback
,
BeforeAllCallback
,
AfterAllCallback
Modifier and Type | Method and Description |
---|---|
void |
afterEach(ExtensionContext context)
Callback that is invoked after each test has been invoked.
|
void afterEach(ExtensionContext context) throws Exception
context
- the current extension context; never null
Exception