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] [Updated] (LANG-1126) DateFormatUtilsTest.testSMTP depends on the default Locale
Date Fri, 01 May 2015 20:10:06 GMT

     [ https://issues.apache.org/jira/browse/LANG-1126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Benedikt Ritter updated LANG-1126:
----------------------------------
    Fix Version/s:     (was: Patch Needed)

> 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
>            Assignee: Benedikt Ritter
>             Fix For: 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