commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1509264 - in /commons/proper/csv/trunk/src/test/java/org/apache/commons/csv: CSVParserTest.java CSVPrinterTest.java
Date Thu, 01 Aug 2013 14:42:36 GMT
Author: sebb
Date: Thu Aug  1 14:42:35 2013
New Revision: 1509264

URL: http://svn.apache.org/r1509264
Log:
Ensure Closeable is closed

Modified:
    commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java
    commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVPrinterTest.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=1509264&r1=1509263&r2=1509264&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 Thu Aug
 1 14:42:35 2013
@@ -702,7 +702,7 @@ public class CSVParserTest {
     @Test(expected = IllegalArgumentException.class)
     public void testInvalidFormat() throws Exception {
         final CSVFormat invalidFormat = CSVFormat.DEFAULT.withDelimiter(CR);
-        new CSVParser((Reader) null, invalidFormat);
+        new CSVParser((Reader) null, invalidFormat).close();
     }
 
     private void validateRecordNumbers(final String lineSeparator) throws IOException {

Modified: commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVPrinterTest.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVPrinterTest.java?rev=1509264&r1=1509263&r2=1509264&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVPrinterTest.java (original)
+++ commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVPrinterTest.java Thu
Aug  1 14:42:35 2013
@@ -487,6 +487,6 @@ public class CSVPrinterTest {
     @Test(expected = IllegalArgumentException.class)
     public void testInvalidFormat() throws Exception {
         final CSVFormat invalidFormat = CSVFormat.DEFAULT.withDelimiter(CR);
-        new CSVPrinter(null, invalidFormat);
+        new CSVPrinter(null, invalidFormat).close();
     }
 }



Mime
View raw message