O'Reilly logo
  • Phillip Thomas thinks this is interesting:

BeforeClass and AfterClass

Normally the test-level setup (@Before) is all you need. In rare circumstances, you might need test-class-level setup of @BeforeClass, which runs once and only once, before any tests in the class execute. JUnit provides the expected @AfterClass bookend.

From

Cover of Pragmatic Unit Testing in Java 8 with JUnit

Note

Could be helpful for testing plugin framework?