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:
parent
e0914986c4
commit
9aa057fea0
|
@ -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) {}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue