Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
1.5.7
-
None
-
None
-
None
Description
Assume a unit test that contains a line like
assertEquals 10, HelperClass.NUMBER
and HelperClass is contains the line
static final int NUMBER = 10
then the test fails when executed through AllTestSuite because NUMBER has not been initialized but is still 0.
HelperClass must be defined in a separate file. If it is declared within the same file, the test succeeds.