I have multiple java test classes that extend a common base class. Currently I have two methods - startUp() and shutDown() with @BeforeClass and @AfterClass annotations respectively which make these methods run once before and after each test class.
I want to define a member in the base class which can be shared by all test classes (so will have to make it static). This class member requires some system properties to be set before it can be initialized.
Is there a say to set these system properties just once before all tests (in all test classes combined) and then set the static member?
I do not want to use junit Suites as I may add more test classes later and that will result in making changes to Suites every time causing an additional dependency.