Simplest behavior: null -> exception, like the other params.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1578504 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2014-03-17 18:41:52 +00:00
parent 5d5458d7f6
commit e454d6847e
1 changed files with 2 additions and 2 deletions

View File

@ -719,10 +719,10 @@ public class CSVParserTest {
CSVParser.parse(null, Charset.defaultCharset(), CSVFormat.DEFAULT);
}
@Test()
@Test(expected = IllegalArgumentException.class)
public void testParserUrlNullCharsetFormat() throws Exception {
final CSVParser parser = CSVParser.parse(new URL("http://commons.apache.org"), null, CSVFormat.DEFAULT);
parser.close();
parser.close();
}
@Test(expected = IllegalArgumentException.class)