From 3b9c6915351fe2cf99751b73a6ef9a15b97bb6f9 Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Sun, 22 Sep 2024 18:51:06 -0700 Subject: [PATCH] Improve #497 test (to validate content) --- .../jackson/dataformat/csv/failing/UnicodeRead497Test.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/csv/src/test/java/com/fasterxml/jackson/dataformat/csv/failing/UnicodeRead497Test.java b/csv/src/test/java/com/fasterxml/jackson/dataformat/csv/failing/UnicodeRead497Test.java index 64334270..01165977 100644 --- a/csv/src/test/java/com/fasterxml/jackson/dataformat/csv/failing/UnicodeRead497Test.java +++ b/csv/src/test/java/com/fasterxml/jackson/dataformat/csv/failing/UnicodeRead497Test.java @@ -23,5 +23,8 @@ public void testUnicodeAtEnd() throws Exception JsonNode o = MAPPER.reader() //.with(schema) .readTree(doc.getBytes(StandardCharsets.UTF_8)); assertNotNull(o); + assertTrue(o.isArray()); + assertEquals(1, o.size()); + assertEquals(o.get(0).textValue(), doc); } }