I have several JUnit tests that need a link for an expensive resource ( WALA hierarchy class ) that takes about 30 seconds to create. I would like to share this link throughout the test suite.
I was thinking of a static member in a base class that is initialized with a method @BeforeClass. After running the test, the JVM should be determined anyway.
Is there any other way to do this? Or any other best practice?
source
share