Skip to content

Commit 3cb24cb

Browse files
committed
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
1 parent f3f3407 commit 3cb24cb

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/test/java/org/apache/commons/csv/CSVParserTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,9 +715,10 @@ public void testParseNullUrlCharsetFormat() throws Exception {
715715
CSVParser.parse(null, Charset.defaultCharset(), CSVFormat.DEFAULT);
716716
}
717717

718-
@Test(expected = IllegalArgumentException.class)
718+
@Test()
719719
public void testParserUrlNullCharsetFormat() throws Exception {
720-
CSVParser.parse(new URL("http://commons.apache.org"), null, CSVFormat.DEFAULT);
720+
final CSVParser parser = CSVParser.parse(new URL("http://commons.apache.org"), null, CSVFormat.DEFAULT);
721+
parser.close();
721722
}
722723

723724
@Test(expected = IllegalArgumentException.class)

0 commit comments

Comments
 (0)