commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r903421 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java
Date Tue, 26 Jan 2010 21:19:10 GMT
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);



Mime
View raw message