1
- package com .fasterxml .jackson .dataformat .xml .failing ;
1
+ package com .fasterxml .jackson .dataformat .xml .deser ;
2
2
3
3
import com .fasterxml .jackson .databind .ObjectMapper ;
4
4
import com .fasterxml .jackson .databind .json .JsonMapper ;
5
5
import com .fasterxml .jackson .dataformat .xml .XmlTestBase ;
6
6
7
- public class JsonNodeMixedContent402Test extends XmlTestBase
7
+ public class JsonNodeMixedContent403Test extends XmlTestBase
8
8
{
9
9
final private ObjectMapper XML_MAPPER = newMapper ();
10
10
@@ -13,28 +13,29 @@ public class JsonNodeMixedContent402Test extends XmlTestBase
13
13
public void testMixedContentBefore () throws Exception
14
14
{
15
15
// First, before elements:
16
- assertEquals (JSON_MAPPER .readTree (a2q ("{'':'before','a':1 ,'b':'2'}" )),
16
+ assertEquals (JSON_MAPPER .readTree (a2q ("{'':'before','a':'1' ,'b':'2'}" )),
17
17
XML_MAPPER .readTree ("<root>before<a>1</a><b>2</b></root>" ));
18
18
}
19
19
20
20
public void testMixedContentBetween () throws Exception
21
21
{
22
22
// Second, between
23
- assertEquals (JSON_MAPPER .readTree (a2q ("{'a':1 ,'':'between','b':'2'}" )),
23
+ assertEquals (JSON_MAPPER .readTree (a2q ("{'a':'1' ,'':'between','b':'2'}" )),
24
24
XML_MAPPER .readTree ("<root><a>1</a>between<b>2</b></root>" ));
25
25
}
26
26
27
27
public void testMixedContentAfter () throws Exception
28
28
{
29
29
// and then after
30
- assertEquals (JSON_MAPPER .readTree (a2q ("{'a':1 ,'b':'2','':'after'}" )),
30
+ assertEquals (JSON_MAPPER .readTree (a2q ("{'a':'1' ,'b':'2','':'after'}" )),
31
31
XML_MAPPER .readTree ("<root><a>1</a><b>2</b>after</root>" ));
32
32
}
33
33
34
34
public void testMultipleMixedContent () throws Exception
35
35
{
36
36
// and then after
37
- assertEquals (JSON_MAPPER .readTree (a2q ("{'':['first','second','third'],'a':1,'b':'2','':'after'}" )),
38
- XML_MAPPER .readTree ("<root>first<a>1</a>second<b>2</b>this</root>" ));
37
+ assertEquals (JSON_MAPPER .readTree (
38
+ a2q ("{'':['first','second','third'],'a':'1','b':'2'}" )),
39
+ XML_MAPPER .readTree ("<root>first<a>1</a>second<b>2</b>third</root>" ));
39
40
}
40
41
}
0 commit comments