@AfterClass
There is no analog to @AfterClass before JUnit 4.0. It is run once after all unit tests in a given class have executed.
The @AfterClass in the most derived class executes first, then the immediate superclass and so on. The most base class’s @AfterClass annotated methods execute last.
Notice that the method is both public and static. This is required:
Comments