Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.

Commit e454d68

Browse files
committed
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
1 parent 5d5458d commit e454d68

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,10 +719,10 @@ public void testParseNullUrlCharsetFormat() throws Exception {
719719
CSVParser.parse(null, Charset.defaultCharset(), CSVFormat.DEFAULT);
720720
}
721721

722-
@Test()
722+
@Test(expected = IllegalArgumentException.class)
723723
public void testParserUrlNullCharsetFormat() throws Exception {
724724
final CSVParser parser = CSVParser.parse(new URL("http://commons.apache.org"), null, CSVFormat.DEFAULT);
725-
parser.close();
725+
parser.close();
726726
}
727727

728728
@Test(expected = IllegalArgumentException.class)

0 commit comments

Comments
 (0)