Annotation Type BeforeClassOnce

  • @Retention(RUNTIME)
    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, ...) and BeforeAll. 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 own BeforeClass, except this annotation need not be attached to a static method