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.


Cover of Pragmatic Unit Testing in Java 8 with JUnit


Could be helpful for testing plugin framework?