File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/test/java/tools/jackson/dataformat/xml/node Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ public void testSimpleNode() throws Exception
1717 JsonNode root = XML_MAPPER .readTree ("<root attr='123' />" );
1818 assertTrue (root .isObject ());
1919 assertEquals (1 , root .size ());
20- assertEquals ("123" , root .get ("attr" ).textValue ());
20+ assertEquals ("123" , root .get ("attr" ).stringValue ());
2121 }
2222
2323 // [dataformat-xml#403]: Allow sequences
@@ -29,8 +29,8 @@ public void testRepeated() throws Exception
2929 assertEquals (JsonNodeType .ARRAY , arr .getNodeType ());
3030 assertTrue (arr .isArray ());
3131 assertEquals (2 , arr .size ());
32- assertEquals ("a" , root .at ("/value/0" ).asText ());
33- assertEquals ("b" , root .at ("/value/1" ).asText ());
32+ assertEquals ("a" , root .at ("/value/0" ).asString ());
33+ assertEquals ("b" , root .at ("/value/1" ).asString ());
3434 }
3535
3636 // [dataformat-xml#405]: support mixed content
You can’t perform that action at this time.
0 commit comments