From 5433169b79d121630ea2e85585ebe9bdaa195e50 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 16 Oct 2022 13:21:20 -0400 Subject: [PATCH] Enable JiraCsv213Test --- .../java/org/apache/commons/csv/issues/JiraCsv213Test.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/apache/commons/csv/issues/JiraCsv213Test.java b/src/test/java/org/apache/commons/csv/issues/JiraCsv213Test.java index 074883fe..e175ff0e 100644 --- a/src/test/java/org/apache/commons/csv/issues/JiraCsv213Test.java +++ b/src/test/java/org/apache/commons/csv/issues/JiraCsv213Test.java @@ -25,18 +25,17 @@ import java.nio.file.Files; import org.apache.commons.csv.CSVFormat; import org.apache.commons.csv.CSVParser; import org.apache.commons.csv.QuoteMode; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; /** * Tests https://issues.apache.org/jira/browse/CSV-213 - * + *

* This is normal behavior with the current architecture: The iterator() API presents an object that is backed by data * in the CSVParser as the parser is streaming over the file. The CSVParser is like a forward-only stream. When you * create a new Iterator you are only created a new view on the same position in the parser's stream. For the behavior * you want, you need to open a new CSVParser. + *

*/ -@Disabled public class JiraCsv213Test { private void createEndChannel(final File csvFile) { @@ -64,6 +63,6 @@ public class JiraCsv213Test { @Test public void test() { - createEndChannel(new File("src/test/resources/CSV-213/999751170.patch.csv")); + createEndChannel(new File("src/test/resources/org/apache/commons/csv/CSV-213/999751170.patch.csv")); } }