Author: ggregory
Date: Mon Mar 17 01:08:00 2014
New Revision: 1578198
URL: http://svn.apache.org/r1578198
Log:
The charset can be null and will default to UTF-8.
Modified:
commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java
Modified:
commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java
URL:
http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java?rev=1578198&r1=1578197&r2=1578198&view=diff
==============================================================================
---
commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java
(original)
+++
commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java
Mon Mar 17 01:08:00 2014
@@ -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)