From ad973d546a43246aa5712e70bfede7595ab47cc4 Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Tue, 31 Dec 2024 17:50:01 -0800 Subject: [PATCH] ... --- .../jackson/dataformat/xml/node/JsonNodeBasicDeserTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/tools/jackson/dataformat/xml/node/JsonNodeBasicDeserTest.java b/src/test/java/tools/jackson/dataformat/xml/node/JsonNodeBasicDeserTest.java index ba945777f..ae43601d4 100644 --- a/src/test/java/tools/jackson/dataformat/xml/node/JsonNodeBasicDeserTest.java +++ b/src/test/java/tools/jackson/dataformat/xml/node/JsonNodeBasicDeserTest.java @@ -17,7 +17,7 @@ public void testSimpleNode() throws Exception JsonNode root = XML_MAPPER.readTree(""); assertTrue(root.isObject()); assertEquals(1, root.size()); - assertEquals("123", root.get("attr").textValue()); + assertEquals("123", root.get("attr").stringValue()); } // [dataformat-xml#403]: Allow sequences @@ -29,8 +29,8 @@ public void testRepeated() throws Exception assertEquals(JsonNodeType.ARRAY, arr.getNodeType()); assertTrue(arr.isArray()); assertEquals(2, arr.size()); - assertEquals("a", root.at("/value/0").asText()); - assertEquals("b", root.at("/value/1").asText()); + assertEquals("a", root.at("/value/0").asString()); + assertEquals("b", root.at("/value/1").asString()); } // [dataformat-xml#405]: support mixed content