Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 1, 2025
1 parent 08b99cd commit ad973d5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void testSimpleNode() throws Exception
JsonNode root = XML_MAPPER.readTree("<root attr='123' />");
assertTrue(root.isObject());
assertEquals(1, root.size());
assertEquals("123", root.get("attr").textValue());
assertEquals("123", root.get("attr").stringValue());
}

// [dataformat-xml#403]: Allow sequences
Expand All @@ -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
Expand Down

0 comments on commit ad973d5

Please sign in to comment.