-
Type: Bug
-
Status: Resolved
-
Priority: Blocker
-
Resolution: Fixed
-
Affects Version/s: 5.5
-
Fix Version/s: 5.5.0-HF19, 5.6.0-HF21, 5.7.2
-
Component/s: CMF (deprecated), Tests
Some tests are failing with errors such as "expected:<Thu Feb 25 1[5:14:35 CET] 2010> but was:<Thu Feb 25 1[4:14:35 UTC] 2010>".
Corresponding code to the above sample is:
assertEquals("Thu Feb 25 15:14:35 CET 2010", receptionDate.getTime().toString());
Tests must not compare strings for date checks. More globally, the tests must be independent of the timezone where they are ran.