You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2009/03/16 03:11:08 UTC

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

Author: sebb
Date: Mon Mar 16 02:11:08 2009
New Revision: 754806

URL: http://svn.apache.org/viewvc?rev=754806&view=rev
Log:
Add test with empty string array

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

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsTest.java?rev=754806&r1=754805&r2=754806&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsTest.java Mon Mar 16 02:11:08 2009
@@ -285,6 +285,10 @@
             DateUtils.parseDate(dateStr, null);
             fail();
         } catch (IllegalArgumentException ex) {}
+        try {
+            DateUtils.parseDate(dateStr, new String[0]);
+            fail();
+        } catch (ParseException ex) {}
     }
 
     //-----------------------------------------------------------------------