@FunctionalInterface @API(value=Experimental) public interface BeforeAllCallback extends Extension
BeforeAllCallback
defines the API for Extensions
that wish to provide additional behavior to test containers before all tests
are invoked.
Concrete implementations often implement AfterAllCallback
as well.
Implementations must provide a no-args constructor.
BeforeAll
,
AfterAllCallback
,
BeforeEachCallback
,
AfterEachCallback
,
BeforeTestExecutionCallback
,
AfterTestExecutionCallback
Modifier and Type | Method and Description |
---|---|
void |
beforeAll(ExtensionContext context)
Callback that is invoked once before all tests in the current
container.
|
void beforeAll(ExtensionContext context) throws Exception
context
- the current extension context; never null
Exception