@Target(value={ANNOTATION_TYPE,METHOD})
@Retention(value=RUNTIME)
@Documented
@API(value=Maintained)
public @interface AfterAll
@AfterAll is used to signal that the annotated method should be
executed after all tests in the current test
class or test class hierarchy.
@AfterAll may also be used as a meta-annotation in order to
create a custom composed annotation that inherits the semantics
of @AfterAll.
In contrast to @AfterEach methods, @AfterAll
methods are only executed once for a given test class.
@AfterAll methods must not be private and must be
static. Consequently, @AfterAll methods are not
supported in @Nested test classes.
BeforeAll,
BeforeEach,
AfterEach,
Test