From: SourceForge.net <no...@so...> - 2007-09-26 13:02:39
|
Bugs item #1779021, was opened at 2007-08-21 21:25 Message generated for change (Comment added) made by mungady You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=115494&aid=1779021&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: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) >Assigned to: David Gilbert (mungady) Summary: Test failures in org.jfree.data.time.junit Initial Comment: Environment: JDK 1.6.0_02-b05 jcommon 1.0.10 jfreechart 1.0.6 It looks as if all failures come from a difference of exactly one hour (3600000 ms) between actual and expected time. Does anyone know the details, and whether simply the test uses wrong expected timestamps, or indeed the Day, Minute, etc classes produce wrong results? thanks for any hints, Heiko (hsommer at eso dot org) There were 29 failures: 1) testGetFirstMillisecond(org.jfree.data.time.junit.DayTests)junit.framework.AssertionFailedError: expected:<5094000000> but was:<5097600000> 2) testGetLastMillisecond(org.jfree.data.time.junit.DayTests)junit.framework.AssertionFailedError: expected:<82799999> but was:<86399999> 3) testGetLastMillisecondWithCalendar(org.jfree.data.time.junit.DayTests)junit.framework.AssertionFailedError: expected:<989017199999> but was:<989020799999> 4) testGetFirstMillisecond(org.jfree.data.time.junit.HourTests)junit.framework.AssertionFailedError: expected:<1143900000000> but was:<1143903600000> 5) testGetFirstMillisecondWithCalendar(org.jfree.data.time.junit.HourTests)junit.framework.AssertionFailedError: expected:<955760400000> but was:<955764000000> 6) testGetLastMillisecond(org.jfree.data.time.junit.HourTests)junit.framework.AssertionFailedError: expected:<3599999> but was:<7199999> 7) testGetLastMillisecondWithCalendar(org.jfree.data.time.junit.HourTests)junit.framework.AssertionFailedError: expected:<987886799999> but was:<987890399999> 8) testGetFirstMillisecond(org.jfree.data.time.junit.MinuteTests)junit.framework.AssertionFailedError: expected:<1143902580000> but was:<1143906180000> 9) testGetFirstMillisecondWithCalendar(org.jfree.data.time.junit.MinuteTests)junit.framework.AssertionFailedError: expected:<955762800000> but was:<955766400000> 10) testGetLastMillisecond(org.jfree.data.time.junit.MinuteTests)junit.framework.AssertionFailedError: expected:<119999> but was:<3719999> 11) testGetLastMillisecondWithCalendar(org.jfree.data.time.junit.MinuteTests)junit.framework.AssertionFailedError: expected:<987885959999> but was:<987889559999> 12) testGetFirstMillisecond(org.jfree.data.time.junit.MillisecondTests)junit.framework.AssertionFailedError: expected:<1143902595500> but was:<1143906195500> 13) testGetFirstMillisecondWithCalendar(org.jfree.data.time.junit.MillisecondTests)junit.framework.AssertionFailedError: expected:<955762855500> but was:<955766455500> 14) testGetLastMillisecond(org.jfree.data.time.junit.MillisecondTests)junit.framework.AssertionFailedError: expected:<61750> but was:<3661750> 15) testGetLastMillisecondWithCalendar(org.jfree.data.time.junit.MillisecondTests)junit.framework.AssertionFailedError: expected:<987885950250> but was:<987889550250> 16) testGetFirstMillisecond(org.jfree.data.time.junit.MonthTests)junit.framework.AssertionFailedError: expected:<5094000000> but was:<5097600000> 17) testGetLastMillisecond(org.jfree.data.time.junit.MonthTests)junit.framework.AssertionFailedError: expected:<7772399999> but was:<7775999999> 18) testGetLastMillisecondWithCalendar(org.jfree.data.time.junit.MonthTests)junit.framework.AssertionFailedError: expected:<986079599999> but was:<986083199999> 19) testGetFirstMillisecond(org.jfree.data.time.junit.QuarterTests)junit.framework.AssertionFailedError: expected:<15634800000> but was:<15638400000> 20) testGetLastMillisecond(org.jfree.data.time.junit.QuarterTests)junit.framework.AssertionFailedError: expected:<23583599999> but was:<23587199999> 21) testGetLastMillisecondWithCalendar(org.jfree.data.time.junit.QuarterTests)junit.framework.AssertionFailedError: expected:<1001890799999> but was:<1001894399999> 22) testGetFirstMillisecond(org.jfree.data.time.junit.SecondTests)junit.framework.AssertionFailedError: expected:<1143902595000> but was:<1143906195000> 23) testGetFirstMillisecondWithCalendar(org.jfree.data.time.junit.SecondTests)junit.framework.AssertionFailedError: expected:<955762855000> but was:<955766455000> 24) testGetLastMillisecond(org.jfree.data.time.junit.SecondTests)junit.framework.AssertionFailedError: expected:<61999> but was:<3661999> 25) testGetLastMillisecondWithCalendar(org.jfree.data.time.junit.SecondTests)junit.framework.AssertionFailedError: expected:<987885950999> but was:<987889550999> 26) testGetFirstMillisecond(org.jfree.data.time.junit.WeekTests)junit.framework.AssertionFailedError: expected:<946800000> but was:<950400000> 27) testGetLastMillisecond(org.jfree.data.time.junit.WeekTests)junit.framework.AssertionFailedError: expected:<18485999999> but was:<18489599999> 28) testGetFirstMillisecond(org.jfree.data.time.junit.YearTests)junit.framework.AssertionFailedError: expected:<-3600000> but was:<0> 29) testGetLastMillisecond(org.jfree.data.time.junit.YearTests)junit.framework.AssertionFailedError: expected:<31532399999> but was:<31535999999> ---------------------------------------------------------------------- >Comment By: David Gilbert (mungady) Date: 2007-09-26 13:02 Message: Logged In: YES user_id=112975 Originator: NO I believe this is fixed by revision 117: http://jfreechart.svn.sourceforge.net/viewvc/jfreechart?view=rev&revision=117 ...but please re-open the bug if it still persists. It is the tests that are wrong, not the code, as far as I can tell. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=115494&aid=1779021&group_id=15494 |