I have a couple of JUnit tests which need a reference for a expensive resource (a WALA class hierachie), which needs about 30s to be created. I would like to share this reference in my whole test suite.
I thought about a static member in a base class which is laziely initiated with a @BeforeClass
method. After test is run the JVM should be determined anyway.
Is there any other way to accomplish this? Or any other best practice?