> Just curious, is there any case where you might genuinely need non-final > static members in a test class?
To be honest you shouldn't have any static initializers at all, including final fields (unless they're really immutable, simple data types). The reason for this is that static initializers (including those for final field assignments) are invoked when the class is initialized and this may be happening outside of the scope of the test runner. @BeforeClass or class rules are the way to "properly" initialize before-test-suite things. D. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
