Fixed a test case that does not work on non-English locales.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@903421 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oliver Heger 2010-01-26 21:19:07 +00:00
parent f624a86dd1
commit 8ea4582e2c
1 changed files with 2 additions and 2 deletions

View File

@ -275,8 +275,8 @@ public void testParseDate() throws Exception {
// LANG-486
public void testParseDateWithLeniency() throws Exception {
GregorianCalendar cal = new GregorianCalendar(1998, 6, 30);
String dateStr = "February 942, 1996";
String[] parsers = new String[] {"MMMMM DDD, yyyy"};
String dateStr = "02 942, 1996";
String[] parsers = new String[] {"MM DDD, yyyy"};
Date date = DateUtils.parseDate(dateStr, parsers);
assertEquals(cal.getTime(), date);