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

DateFormatUtilsTest.testSMTP depends on the default Locale

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.5
    • 3.5
    • lang.time.*
    • None

    Description

      DateFormatUtilsTest.testSMTP depends on the default Locale and expects this to be Locale.EN. When running the test with the different default Locale (e.g. Locale.GERMANY) it will fail with the following message:

      org.junit.ComparisonFailure: 
      Expected :Sun, 08 Jun 2003 10:11:12 -0300
      Actual   :So, 08 Jun 2003 10:11:12 -0300
      

      Solution: Set the default Locale before the test runs and reset it afterwards.

      Attachments

        Issue Links

          Activity

            People

              britter Benedikt Ritter
              britter Benedikt Ritter
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: