Package org.hibernate.testing
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.
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
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.