commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r754806 - /commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsTest.java
Date Mon, 16 Mar 2009 02:11:08 GMT
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) {}
     }
 
     //-----------------------------------------------------------------------



Mime
View raw message