[
https://issues.apache.org/jira/browse/LANG-1126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benedikt Ritter resolved LANG-1126.
-----------------------------------
Resolution: Fixed
{code}
$ git merge LANG-1126 --no-ff
Merge made by the 'recursive' strategy.
src/changes/changes.xml | 1 +
src/test/java/org/apache/commons/lang3/time/DateFormatUtilsTest.java | 34
++++++++++++++++++++--------------
2 files changed, 21 insertions(+), 14 deletions(-)
{code}
> 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: 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)