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)