You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/09/04 13:54:55 UTC

[commons-csv] 02/02: [CSV-236] Allow duplicate headers in CSV File.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-csv.git

commit f62fd132d0e83715364edab4de3d6308d8626a0d
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Sep 4 09:54:49 2019 -0400

    [CSV-236] Allow duplicate headers in CSV File.
    
    Add test.
---
 src/test/java/org/apache/commons/csv/CSVFormatTest.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/test/java/org/apache/commons/csv/CSVFormatTest.java b/src/test/java/org/apache/commons/csv/CSVFormatTest.java
index b683a04..865572e 100644
--- a/src/test/java/org/apache/commons/csv/CSVFormatTest.java
+++ b/src/test/java/org/apache/commons/csv/CSVFormatTest.java
@@ -586,6 +586,11 @@ public class CSVFormatTest {
     }
 
     @Test
+    public void testJiraCsv236() {
+        CSVFormat.DEFAULT.withAllowDuplicateHeaderNames().withHeader("CC","VV","VV");
+    }
+
+    @Test
     public void testNewFormat() {
 
         final CSVFormat csvFormat = CSVFormat.newFormat('X');