You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Benedikt Ritter (JIRA)" <ji...@apache.org> on 2015/05/01 22:10:06 UTC

[jira] [Updated] (LANG-1126) DateFormatUtilsTest.testSMTP depends on the default Locale

     [ 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)