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.
- More on @Before and @After (Common Initialization and Cleanup)
- from Pragmatic Unit Testing in Java 8 with JUnit
- Publisher: Pragmatic Bookshelf
- Released: March 2015
Could be helpful for testing plugin framework?
Share this highlighthttp://www.safaribooksonline.com/a/pragmatic-unit-testing/1026157/