Package org.hibernate.testing
Annotation Type BeforeClassOnce
-
@Retention(RUNTIME) @Target({METHOD,TYPE}) @Deprecated(forRemoval=true) public @interface BeforeClassOnce
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, ...) andBeforeAll. 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 before the first test execution for the given class. Much like JUnit's ownBeforeClass, except this annotation need not be attached to a static method