Skip to content

Commit 8b6169b

Browse files
committed
...
1 parent 1bebf0b commit 8b6169b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
package com.fasterxml.jackson.dataformat.xml.failing;
22

33
import com.fasterxml.jackson.databind.JsonNode;
4-
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
4+
import com.fasterxml.jackson.databind.ObjectMapper;
5+
56
import com.fasterxml.jackson.dataformat.xml.XmlTestBase;
67

78
public class MixedContentTreeRead226Test extends XmlTestBase
89
{
10+
private final ObjectMapper MAPPER = newMapper();
11+
912
public void testMixed226() throws Exception
1013
{
1114
final String XML = "<root>\n<a>lorem <b>ipsum</b> dolor</a>\n</root>";
12-
XmlMapper mapper = new XmlMapper();
13-
JsonNode root = mapper.readTree(XML);
15+
JsonNode root = MAPPER.readTree(XML);
1416
assertNotNull(root);
1517
}
1618
}

0 commit comments

Comments
 (0)