This is an automated email from the ASF dual-hosted git repository.
garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-csv.git
The following commit(s) were added to refs/heads/master by this push:
new dfbf6f83 Handle null name in CSVRecord accessors under
ignoreHeaderCase (#628).
dfbf6f83 is described below
commit dfbf6f83ac611ddf3f8bf167670e3efceca81e5c
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Jul 23 07:37:24 2026 -0400
Handle null name in CSVRecord accessors under ignoreHeaderCase (#628).
---
.../java/org/apache/commons/csv/CSVRecordTest.java | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/test/java/org/apache/commons/csv/CSVRecordTest.java
b/src/test/java/org/apache/commons/csv/CSVRecordTest.java
index 1f4ebb1a..82153297 100644
--- a/src/test/java/org/apache/commons/csv/CSVRecordTest.java
+++ b/src/test/java/org/apache/commons/csv/CSVRecordTest.java
@@ -230,6 +230,15 @@ class CSVRecordTest {
assertFalse(recordWithHeader.isSet("DOES NOT EXIST"));
}
+ @Test
+ void testIterator() {
+ int i = 0;
+ for (final String value : record) {
+ assertEquals(values[i], value);
+ i++;
+ }
+ }
+
@ParameterizedTest
@ValueSource(booleans = { false, true })
void testNullNameAccessorsMatchAcrossIgnoreHeaderCase(final boolean
ignoreHeaderCase) throws IOException {
@@ -246,15 +255,6 @@ class CSVRecordTest {
}
}
- @Test
- void testIterator() {
- int i = 0;
- for (final String value : record) {
- assertEquals(values[i], value);
- i++;
- }
- }
-
@Test
void testPutInMap() {
final Map<String, String> map = new ConcurrentHashMap<>();