Package org.junit.jupiter.api.extension
Interface BeforeAllCallback
-
- All Superinterfaces:
Extension
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface @API(status=STABLE, since="5.0") public interface BeforeAllCallback extends Extension
BeforeAllCallback
defines the API forExtensions
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.- Since:
- 5.0
- See Also:
BeforeAll
,AfterAllCallback
,BeforeEachCallback
,AfterEachCallback
,BeforeTestExecutionCallback
,AfterTestExecutionCallback
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
beforeAll(ExtensionContext context)
Callback that is invoked once before all tests in the current container.
-
-
-
Method Detail
-
beforeAll
void beforeAll(ExtensionContext context) throws java.lang.Exception
Callback that is invoked once before all tests in the current container.- Parameters:
context
- the current extension context; nevernull
- Throws:
java.lang.Exception
-
-