XStream
  1. XStream
  2. XSTR-4

ExtendedTypesTest fails outside of "Europe/London" time zone

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The test case for the TimeStamp converter, ExtendedTypesTest.java, has a hard coded value used to compare the newly generated Timestamp object. This value is dependent on the TimeZone of the user running the test suite and fails for people in time zones other than "Europe/London"!

      The attached patch sets the default TimeZone to GMT before asserting if the Timestamp values are equal. It also modifies the hard coded Timestamp value to use GMT as the basis for comparison.

        People

        • Assignee:
          Unassigned
          Reporter:
          Brock Bulger
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: