Skip to content

Commit b2b6373

Browse files
committed
Add a failing test for #167
1 parent 98d8c27 commit b2b6373

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package com.fasterxml.jackson.dataformat.xml.failing;
2+
3+
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
4+
import com.fasterxml.jackson.dataformat.xml.XmlTestBase;
5+
6+
public class EmptyElement167Test extends XmlTestBase
7+
{
8+
static class A {
9+
public String d;
10+
}
11+
12+
/*
13+
/**********************************************************
14+
/* Test methods
15+
/**********************************************************
16+
*/
17+
18+
private final XmlMapper MAPPER = new XmlMapper();
19+
20+
public void testIssue167() throws Exception
21+
{
22+
final String XML =
23+
"<a xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>\n"+
24+
"<d xsi:nil='true'/>\n"+
25+
"</a>\n";
26+
A result = MAPPER.readValue(XML, A.class);
27+
assertNotNull(result);
28+
}
29+
}

0 commit comments

Comments
 (0)