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
BeforeAllCallbackdefines the API forExtensionsthat wish to provide additional behavior to test containers before all tests are invoked.Concrete implementations often implement
AfterAllCallbackas well.Implementations must provide a no-args constructor.
Extensions that implement
BeforeAllCallbackmust 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 voidbeforeAll(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
-
-