Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move failing test for #191 under
failing/
- Loading branch information
1 parent
f153ee4
commit b1e6104
Showing
3 changed files
with
39 additions
and
41 deletions.
There are no files selected for viewing
41 changes: 0 additions & 41 deletions
41
csv/src/test/java/com/fasterxml/jackson/dataformat/csv/CsvMapperSpecialCsvFileTest.java
This file was deleted.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
csv/src/test/java/com/fasterxml/jackson/dataformat/csv/failing/ParserSkipEmpty191Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package com.fasterxml.jackson.dataformat.csv.failing; | ||
|
||
import java.io.InputStream; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import com.fasterxml.jackson.dataformat.csv.CsvMapper; | ||
import com.fasterxml.jackson.dataformat.csv.CsvSchema; | ||
import com.fasterxml.jackson.dataformat.csv.ModuleTestBase; | ||
|
||
// [dataformats-text#191] | ||
public class ParserSkipEmpty191Test extends ModuleTestBase { | ||
|
||
private static String COL_1 = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; | ||
private static String COL_2 = "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"; | ||
|
||
// [dataformats-text#191]: IndexArrayOutOfBounds at 4000 | ||
public void testBigCsvFile() throws Exception { | ||
CsvSchema schema = CsvSchema | ||
.emptySchema() | ||
.withHeader() | ||
.withColumnSeparator(';') | ||
.withNullValue("null") | ||
.withComments(); | ||
|
||
try (InputStream csvFileStream = getClass().getResourceAsStream("/csv/issue-191.csv")) { | ||
List<Map<String, String>> result = new CsvMapper() | ||
.readerFor(Map.class) | ||
.with(schema) | ||
.<Map<String, String>>readValues(csvFileStream) | ||
.readAll(); | ||
|
||
for (Map<String, String> row : result) { | ||
assertEquals(row.get("COL_1"), COL_1); | ||
assertEquals(row.get("COL_2"), COL_2); | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.