The charset can be null and will default to UTF-8.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1578198 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2014-03-17 01:08:00 +00:00
parent f3f34073ae
commit 3cb24cbdfb
1 changed files with 3 additions and 2 deletions

View File

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