Skip to content

Commit 679c793

Browse files
committed
Minor test addition
1 parent 25c2cac commit 679c793

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
}

0 commit comments

Comments
 (0)