title: Junit @AfterClass (non static)
body: <p>Junit's <code>@BeforeClass</code> and <code>@AfterClass</code> must be declared static. There is a nice workaround <a href="https://stackoverflow.com/questions/32952884/junit-beforeclass-non-static-work-around-for-spring-boot-application/32956539#32956539">here</a> for <code>@BeforeClass</code>. I have a number of unit tests in my class and only want to initialize and clean up once. Any help on how to get a workaround for <code>@AfterClass</code>? I'd like to use Junit without introducing additional dependencies. Thanks!</p>