We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acfaadd commit b2e6729Copy full SHA for b2e6729
1 file changed
src/test/java/org/apache/commons/csv/CSVFormatTest.java
@@ -930,6 +930,15 @@ public void testWithEscape() {
930
assertEquals(Character.valueOf('&'), formatWithEscape.getEscapeCharacter());
931
}
932
933
+ @Test
934
+ public void testWithEmptyDuplicates() {
935
+ final CSVFormat formatWithEmptyDuplicates =
936
+ CSVFormat.DEFAULT.withDuplicateHeaderMode(DuplicateHeaderMode.ALLOW_EMPTY);
937
+
938
+ assertEquals(DuplicateHeaderMode.ALLOW_EMPTY, formatWithEmptyDuplicates.getDuplicateHeaderMode());
939
+ assertFalse(formatWithEmptyDuplicates.getAllowDuplicateHeaderNames());
940
+ }
941
942
@Test
943
public void testWithEscapeCRThrowsExceptions() {
944
assertThrows(IllegalArgumentException.class, () -> CSVFormat.DEFAULT.withEscape(CR));
0 commit comments