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 @@ -298,7 +298,7 @@ public void testBackslashEscaping() throws IOException {
298298
299299
300300 CSVFormat format = CSVFormat .PRISTINE .withDelimiter (',' ).withEncapsulator ('\'' ).withEscape ('/' )
301- .withEmptyLinesIgnored (true ).withLineSeparator (" \r \n " );
301+ .withEmptyLinesIgnored (true ).withLineSeparator (CSVFormat . CRLF );
302302
303303 CSVParser parser = new CSVParser (code , format );
304304 List <CSVRecord > records = parser .getRecords ();
@@ -328,7 +328,7 @@ public void testBackslashEscaping2() throws IOException {
328328
329329
330330 CSVFormat format = CSVFormat .PRISTINE .withDelimiter (',' ).withEscape ('/' )
331- .withEmptyLinesIgnored (true ).withLineSeparator (" \r \n " );
331+ .withEmptyLinesIgnored (true ).withLineSeparator (CSVFormat . CRLF );
332332
333333 CSVParser parser = new CSVParser (code , format );
334334 List <CSVRecord > records = parser .getRecords ();
@@ -518,7 +518,7 @@ public void testGetLineNumberWithLF() throws Exception {
518518
519519 @ Test
520520 public void testGetLineNumberWithCRLF () throws Exception {
521- CSVParser parser = new CSVParser ("a\r \n b\r \n c" , CSVFormat .DEFAULT .withLineSeparator (" \r \n " ));
521+ CSVParser parser = new CSVParser ("a\r \n b\r \n c" , CSVFormat .DEFAULT .withLineSeparator (CSVFormat . CRLF ));
522522
523523 assertEquals (0 , parser .getLineNumber ());
524524 assertNotNull (parser .getRecord ());
You can’t perform that action at this time.
0 commit comments