Skip to content

Commit 7d2255f

Browse files
committed
Add failing test for #226
1 parent e4d2b44 commit 7d2255f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.fasterxml.jackson.dataformat.xml.failing;
2+
3+
import com.fasterxml.jackson.databind.JsonNode;
4+
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
5+
import com.fasterxml.jackson.dataformat.xml.XmlTestBase;
6+
7+
public class MixedContentTreeRead226Test extends XmlTestBase
8+
{
9+
public void testMixed226() throws Exception
10+
{
11+
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);
14+
assertNotNull(root);
15+
}
16+
}

0 commit comments

Comments
 (0)