Uploaded image for project: 'Commons CLI'
  1. Commons CLI
  2. CLI-127

Date validation tests are locale dependent

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: CLI-2.x
    • Labels:
      None

      Description

      Date validation tests have strings such as Dec or Jan to specify months. In Italian locale the tests fails because the correct strings are Dic and Gen.
      Use DateFormatSymbols to make the test locale independent

        Attachments

        1. DateValidatorTest.java
          2 kB
          Andrea Aime

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              aaime Andrea Aime
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: