We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bebf0b commit 8b6169bCopy full SHA for 8b6169b
src/test/java/com/fasterxml/jackson/dataformat/xml/failing/MixedContentTreeRead226Test.java
@@ -1,16 +1,18 @@
1
package com.fasterxml.jackson.dataformat.xml.failing;
2
3
import com.fasterxml.jackson.databind.JsonNode;
4
-import com.fasterxml.jackson.dataformat.xml.XmlMapper;
+import com.fasterxml.jackson.databind.ObjectMapper;
5
+
6
import com.fasterxml.jackson.dataformat.xml.XmlTestBase;
7
8
public class MixedContentTreeRead226Test extends XmlTestBase
9
{
10
+ private final ObjectMapper MAPPER = newMapper();
11
12
public void testMixed226() throws Exception
13
14
final String XML = "<root>\n<a>lorem <b>ipsum</b> dolor</a>\n</root>";
- XmlMapper mapper = new XmlMapper();
- JsonNode root = mapper.readTree(XML);
15
+ JsonNode root = MAPPER.readTree(XML);
16
assertNotNull(root);
17
}
18
0 commit comments