Annotation Type BeforeClassOnce


  • @Retention(RUNTIME)
    @Target({METHOD,TYPE})
    public @interface BeforeClassOnce
    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