From: SourceForge.net <no...@so...> - 2007-02-10 17:14:17
|
Bugs item #1656438, was opened at 2007-02-09 23:58 Message generated for change (Comment added) made by fordfrog You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=115494&aid=1656438&group_id=15494 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General Group: 1.0.x Status: Open Resolution: None Priority: 5 Private: No Submitted By: Miroslav Šulc (fordfrog) Assigned to: David Gilbert (mungady) Summary: jfreechart-1.0.4: testMondayThroughFridayTranslations fails Initial Comment: I ran tests using ant and got this error: ... [junit] Testcase: testMs2BaseTimelineTranslations took 0,27 sec [junit] Testcase: testMs2Translations took 18,47 sec [junit] Testcase: testMondayThroughFridayTranslations took 0,01 sec [junit] FAILED [junit] expected:<978476400000> but was:<978390000000> [junit] junit.framework.AssertionFailedError: expected:<978476400000> but was:<978390000000> [junit] at org.jfree.chart.axis.junit.SegmentedTimelineTests.verifyTranslations(SegmentedTimelineTests.java:848) [junit] at org.jfree.chart.axis.junit.SegmentedTimelineTests.testMondayThroughFridayTranslations(SegmentedTimelineTests.java:787) [junit] It looks like one day (24hrs) difference to me. ---------------------------------------------------------------------- >Comment By: Miroslav Šulc (fordfrog) Date: 2007-02-10 18:13 Message: Logged In: YES user_id=1483986 Originator: YES I put some System.out to the test and here is what I got: Monday: Mon Jan 01 00:00:00 CET 2001 testCycle: 0 Segment size: 978303600000 translatedValue: 2275948800000 newValue: 978390000000 tempSegment.getMillisecond(): 978390000000 translatedValue: 2275948800000 newValue: 978390000000 segment.getMillisecond(): 978390000000 translatedValue: 2276035200000 newValue: 978390000000 segment.getMillisecond(): 978476400000 I do not understand what exactly the code does but it seems to me that the problem might be in Monday. As it is "Mon Jan 01 00:00:00 CET 2001", it is in fact "Sun Dec 31 23:00:00 UTC 2000". Maybe this makes the one-day difference if compared as dates (without time info). But I'm just guessing. I hope this output helps. If not then ask what you need exactly and I'll give you that. Unfortunately "this.mondayFridayTimeline.toString()" does not give any info so the output here misses it too. ---------------------------------------------------------------------- Comment By: David Gilbert (mungady) Date: 2007-02-10 07:50 Message: Logged In: YES user_id=112975 Originator: NO Can you post some details of your runtime? These tests all pass for me. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=115494&aid=1656438&group_id=15494 |