File tree Expand file tree Collapse file tree
src/test/java/org/apache/commons/csv Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -702,7 +702,7 @@ public void testGetRecordNumberWithCR() throws Exception {
702702 @ Test (expected = IllegalArgumentException .class )
703703 public void testInvalidFormat () throws Exception {
704704 final CSVFormat invalidFormat = CSVFormat .DEFAULT .withDelimiter (CR );
705- new CSVParser ((Reader ) null , invalidFormat );
705+ new CSVParser ((Reader ) null , invalidFormat ). close () ;
706706 }
707707
708708 private void validateRecordNumbers (final String lineSeparator ) throws IOException {
Original file line number Diff line number Diff line change @@ -487,6 +487,6 @@ public void testEOLPlain() throws IOException {
487487 @ Test (expected = IllegalArgumentException .class )
488488 public void testInvalidFormat () throws Exception {
489489 final CSVFormat invalidFormat = CSVFormat .DEFAULT .withDelimiter (CR );
490- new CSVPrinter (null , invalidFormat );
490+ new CSVPrinter (null , invalidFormat ). close () ;
491491 }
492492}
You can’t perform that action at this time.
0 commit comments