In my project I have to do some repository setup before all tests. This is done using some tricky static rules. However I\'ve got no clue how to do clean up after all the te
Just encountered the same problem.
My solution:
Runtime.getRuntime().addShutdownHook(new Thread(() -> do_your_global_cleanup())));