commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r912438 - /commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DateUtilsTest.java
Date Sun, 21 Feb 2010 23:25:27 GMT
Author: niallp
Date: Sun Feb 21 23:25:26 2010
New Revision: 912438

URL: http://svn.apache.org/viewvc?rev=912438&view=rev
Log:
Port r903421 to 2.x branch - Fixed a test case that does not work on non-English locales

Modified:
    commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DateUtilsTest.java

Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DateUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DateUtilsTest.java?rev=912438&r1=912437&r2=912438&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DateUtilsTest.java
(original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DateUtilsTest.java
Sun Feb 21 23:25:26 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