File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
src/test/java/com/fasterxml/jackson/dataformat/xml Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ package com .fasterxml .jackson .dataformat .xml ;
2
+
3
+ import com .fasterxml .jackson .databind .ObjectReader ;
4
+ import com .fasterxml .jackson .dataformat .xml .deser .FromXmlParser ;
5
+ import com .fasterxml .jackson .dataformat .xml .ser .ToXmlGenerator ;
6
+
7
+ public class FeatureDefaultsTest extends XmlTestBase
8
+ {
9
+ private final XmlMapper MAPPER = newMapper ();
10
+
11
+ public void testDeserDefaults () throws Exception
12
+ {
13
+ ObjectReader r = MAPPER .reader ();
14
+ assertNotSame (r , r .with (FromXmlParser .Feature .EMPTY_ELEMENT_AS_NULL ));
15
+ }
16
+
17
+ public void testSerDefaults () throws Exception
18
+ {
19
+ ObjectReader r = MAPPER .reader ();
20
+ assertNotSame (r , r .with (ToXmlGenerator .Feature .WRITE_XML_1_1 ));
21
+ }
22
+ }
You can’t perform that action at this time.
0 commit comments