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
commit d74cd0e9b7307bb4311438742f830e24da5f3d73 Author: Gary Gregory <[email protected]> AuthorDate: Wed Jul 29 09:55:43 2026 -0400 Sort members --- .../java/org/apache/commons/csv/CSVPrinterTest.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/test/java/org/apache/commons/csv/CSVPrinterTest.java b/src/test/java/org/apache/commons/csv/CSVPrinterTest.java index ff3b2b6d..1c25821e 100644 --- a/src/test/java/org/apache/commons/csv/CSVPrinterTest.java +++ b/src/test/java/org/apache/commons/csv/CSVPrinterTest.java @@ -1729,6 +1729,16 @@ class CSVPrinterTest { } } + @Test + void testPrintNullValues() throws IOException { + final StringWriter sw = new StringWriter(); + try (CSVPrinter printer = new CSVPrinter(sw, CSVFormat.DEFAULT)) { + assertInitialState(printer); + printer.printRecord("a", null, "b"); + assertEquals("a,,b" + RECORD_SEPARATOR, sw.toString()); + } + } + @Test void testPrintNullValueStartingRecord() throws IOException { final StringWriter sw = new StringWriter(); @@ -1754,16 +1764,6 @@ class CSVPrinterTest { assertEquals(RECORD_SEPARATOR, printNullRecord(CSVFormat.DEFAULT.builder().setQuote(null).get())); } - @Test - void testPrintNullValues() throws IOException { - final StringWriter sw = new StringWriter(); - try (CSVPrinter printer = new CSVPrinter(sw, CSVFormat.DEFAULT)) { - assertInitialState(printer); - printer.printRecord("a", null, "b"); - assertEquals("a,,b" + RECORD_SEPARATOR, sw.toString()); - } - } - @Test void testPrintOnePositiveInteger() throws IOException { final StringWriter sw = new StringWriter();
