Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-443

DateUtils should test with the extremes

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4
    • 2.5
    • lang.time.*
    • None

    Description

      Current testdates are a bit to generic. Especially for truncating, ceiling and rounding you shuold test for the extremes.
      So for rounding to hours you should test for 0:29 (rounding down); 0:30 (rounding up); 1:00 (no rounding required)

      Attachments

        1. LANG-443-rs.patch
          31 kB
          Robert Scholte

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rfscholte-getthere Robert Scholte
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: