@BeforeClass
There is no analog to @BeforeClass before JUnit 4.0. This is initialization code that is executed once. That is, if you have 1 unit tests or 100, this will execute one time before the very first test execution.
@BeforeClass annotated methods in superclasses will execute first.
Notice that the method is both public and static. That’s required:
Comments