#788 Test failures in org.jfree.data.time.junit

closed-fixed
David Gilbert
General (896)
5
2007-09-26
2007-08-21
Anonymous
No

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>

Discussion

  • David Gilbert
    David Gilbert
    2007-09-26

    • labels: --> General
    • assigned_to: nobody --> mungady
    • status: open --> closed-fixed