Add test with empty string array

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754806 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2009-03-16 02:11:08 +00:00
parent e0914986c4
commit 9aa057fea0
1 changed files with 4 additions and 0 deletions

View File

@ -285,6 +285,10 @@ public void testParseDate() throws Exception {
DateUtils.parseDate(dateStr, null);
fail();
} catch (IllegalArgumentException ex) {}
try {
DateUtils.parseDate(dateStr, new String[0]);
fail();
} catch (ParseException ex) {}
}
//-----------------------------------------------------------------------