Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0
-
Fix Version/s: 2.0
-
Labels:None
-
Environment:osx 10.4.6, java 1.4.2_06
-
Testcase included:yes
-
Number of attachments :
Description
The date test assertions all fail:
junit.framework.AssertionFailedError: Test changelog 1 set 1 date/time expected:<239635800000> but was:< 239715000000 >
at org.apache.maven.changelog.ChangeLogTest.testReadFile(ChangeLogTest.java:50)
assertEquals( "Test changelog 1 set 1 date/time", 239635800000L, changeSet.getDate().getTime() );
They just have the wrong date, and they are offset by the timezone ( 7 hours, in my case - I'm MST -0700)
Issue Links
- is related to
-
MCHANGELOG-68
testReadFile unit test timebased comparisons fail
-
This update patches the timezone problem, by offsetting the time by the amount of the local timezone in ChangeLogHandler. It also fixes the expectations on the test, which I guess were developed in the +0200 timezone?
The tests should pass in all timezones now.