You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Jim Yu (JIRA)" <ji...@apache.org> on 2009/06/24 10:59:07 UTC

[jira] Closed: (HARMONY-5818) [classlib][util]GregorianCalendarTest: two test case results depend on current date

     [ https://issues.apache.org/jira/browse/HARMONY-5818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Yu closed HARMONY-5818.
---------------------------


>  [classlib][util]GregorianCalendarTest: two test case results depend on current date 
> -------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5818
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5818
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M6
>            Reporter: Jim Yu
>            Assignee: Oliver Deakin
>         Attachments: HARMONY-5818.diff
>
>
> GregorianCalendarTest: whether the two test cases below will pass or not depends on the current date. If current date is using daylight savings in "CST" while "EST" doesn't use daylight savings all the time, then the hour field of calendar for "CST" and "EST" are the same, the test cases will fail. Otherwise, "CST" is 1 hour before "EST", the test cases will succeed. So we should specify a fixed date for the calendar so as to make the below test cases behave unchangeably all the time.
> (1) test_ConstructorLjava_util_TimeZone()
> (2) test_ConstructorLjava_util_TimeZoneLjava_util_Locale()

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.