Annotation Interface AfterClassOnce


@Retention(RUNTIME) @Target({METHOD,TYPE}) @Deprecated(forRemoval=true) public @interface AfterClassOnce
Deprecated, for removal: This API element is subject to removal in a future version.
Use JUnit 5 along with one of the Hibernate ORM's class-level test annotations (BaseUnitTest, SessionFactory, Jpa, SessionFactoryFunctionalTesting, ServiceRegistryFunctionalTesting, ...) and AfterAll. Alternatively to the Hibernate ORM test annotations, you can use @TestInstance(TestInstance.Lifecycle.PER_CLASS) directly on your test.
Annotation used to mark a method which should be run once after the last test execution for the given class. Much like JUnit's own AfterClass, except this annotation need not be attached to a static method