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:
parent
f3f34073ae
commit
3cb24cbdfb
|
@ -715,9 +715,10 @@ public class CSVParserTest {
|
|||
CSVParser.parse(null, Charset.defaultCharset(), CSVFormat.DEFAULT);
|
||||
}
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
@Test()
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue