@FunctionalInterface @API(status=STABLE, since="5.0") 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.
Extensions that implement BeforeAllCallback
must be registered at
the class level.
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