File tree 2 files changed +44
-1
lines changed
src/test/java/com/fasterxml/jackson/dataformat/xml/failing
2 files changed +44
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Project: jackson-dataformat-xml
9
9
#156: Add `XmlMapper.setDefaultUseWrapper()` for convenience.
10
10
#169: Fail to deserialize "empty" polymorphic classes
11
11
12
- 2.6.4 (not yet released )
12
+ 2.6.4 (07-Dec-2015 )
13
13
14
14
#171: `@JacksonXmlRootElement` malfunction in multi-thread environment
15
15
(reported by Leo W)
Original file line number Diff line number Diff line change
1
+ package com .fasterxml .jackson .dataformat .xml .failing ;
2
+
3
+ import java .util .List ;
4
+
5
+ import com .fasterxml .jackson .dataformat .xml .*;
6
+ import com .fasterxml .jackson .dataformat .xml .annotation .*;
7
+
8
+ // for [dataformat-xml#177]
9
+ public class EmptyList177Test extends XmlTestBase
10
+ {
11
+ static class Config
12
+ {
13
+ @ JacksonXmlProperty (isAttribute =true )
14
+ public String id ;
15
+
16
+ @ JacksonXmlElementWrapper (useWrapping =false )
17
+ public List <Entry > entry ;
18
+ }
19
+
20
+ static class Entry
21
+ {
22
+ @ JacksonXmlProperty (isAttribute =true )
23
+ public String id ;
24
+ }
25
+
26
+ /*
27
+ /**********************************************************
28
+ /* Test methods
29
+ /**********************************************************
30
+ */
31
+
32
+ private final XmlMapper MAPPER = new XmlMapper ();
33
+
34
+ public void testEmptyList () throws Exception
35
+ {
36
+ Config r = MAPPER .readValue (
37
+ "<Config id='123'>\n " +
38
+ " <entry id='foo'> </entry>\n " +
39
+ "</Config>\n " ,
40
+ Config .class );
41
+ assertNotNull (r );
42
+ }
43
+ }
You can’t perform that action at this time.
0 commit comments