Menu

#815 testGetFirstMillisecondWithTimeZone fails in 1.0.8a

closed-fixed
General (896)
7
2007-12-19
2007-12-15
No

[junit] Testcase: testGetFirstMillisecondWithTimeZone took 0.001 sec
[junit] FAILED
[junit] expected:<-603216000000> but was:<-603302400000>
[junit] junit.framework.AssertionFailedError: expected:<-603216000000> but was:<-603302400000>
[junit] at org.jfree.data.time.junit.WeekTests.testGetFirstMillisecondWithTimeZone(WeekTests.java:329)
[junit]

BUILD FAILED
/home/betelgeuse/test/jfreechart-1.0.8a/ant/build.xml:336: Test org.jfree.data.time.junit.DataTimePackageTests failed

Seems like it's one day off:
( 603302400000 - 603216000000 ) / 1000 / 60 / 60
24

Discussion

  • David Gilbert

    David Gilbert - 2007-12-19
    • labels: --> General
    • priority: 5 --> 7
    • assigned_to: nobody --> mungady
    • status: open --> closed-fixed
     
  • David Gilbert

    David Gilbert - 2007-12-19

    Logged In: YES
    user_id=112975
    Originator: NO

    Thanks for the report. This is an error in the test, as the result is sensitive to the default locale. I've patched the code to control the locale, and hopefully it will now work for you. If not, please reopen the bug. The fixes will be included in the 1.0.9 release, which I will do my best to get released before the end of the month.

     
  • Petteri Räty

    Petteri Räty - 2007-12-24

    Logged In: YES
    user_id=924568
    Originator: YES

    could you commit the fix so that I can apply it for Gentoo packaging

     

Log in to post a comment.