commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LANG-1126) DateFormatUtilsTest.testSMTP depends on the default Locale
Date Fri, 01 May 2015 09:53:06 GMT
Benedikt Ritter created LANG-1126:
-------------------------------------

             Summary: DateFormatUtilsTest.testSMTP depends on the default Locale
                 Key: LANG-1126
                 URL: https://issues.apache.org/jira/browse/LANG-1126
             Project: Commons Lang
          Issue Type: Bug
          Components: lang.time.*
    Affects Versions: 3.5
            Reporter: Benedikt Ritter
             Fix For: Patch Needed, 3.5


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:

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

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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message