You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by oh...@apache.org on 2010/01/26 22:19:10 UTC

svn commit: r903421 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java

Author: oheger
Date: Tue Jan 26 21:19:07 2010
New Revision: 903421

URL: http://svn.apache.org/viewvc?rev=903421&view=rev
Log:
Fixed a test case that does not work on non-English locales.

Modified:
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java?rev=903421&r1=903420&r2=903421&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java Tue Jan 26 21:19:07 2010
@@ -275,8 +275,8 @@
     // 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);