Package org.hibernate.testing
Annotation Type 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
, ...) andAfterAll
. 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 ownAfterClass
, except this annotation need not be attached to a static method