Uploaded image for project: 'mod-circulation'
  1. mod-circulation
  2. CIRC-226

Unit tests fail due to missing time zones

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 15.0.0
    • None

    Description

      The CheckOutByBarcodeFixedDueDateScenariosTest tests fail due to the fact the DateTimeFormat instances do not include the time zone.

      Instead of:

          DateTime limitDueDate =
            DateTime.parse(CASE_FRI_SAT_MON_SERVICE_POINT_CURR_DAY, DateTimeFormat.forPattern(DATE_TIME_FORMAT))
              .withZoneRetainFields(DateTimeZone.UTC);
      

      We should be doing:

          DateTime limitDueDate =
            DateTime.parse(CASE_FRI_SAT_MON_SERVICE_POINT_CURR_DAY, DateTimeFormat.forPattern(DATE_TIME_FORMAT).withZone(DateTimeZone.UTC))
              .withZoneRetainFields(DateTimeZone.UTC);
      

      The build will fail on any machine that is not configured to UTC.

      TestRail: Results

        Attachments

          Activity

            People

              mreno Mathew Reno
              mreno Mathew Reno
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases