-
-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25c2cac
commit 679c793
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
src/test/java/com/fasterxml/jackson/dataformat/xml/FeatureDefaultsTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.fasterxml.jackson.dataformat.xml; | ||
|
||
import com.fasterxml.jackson.databind.ObjectReader; | ||
import com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser; | ||
import com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator; | ||
|
||
public class FeatureDefaultsTest extends XmlTestBase | ||
{ | ||
private final XmlMapper MAPPER = newMapper(); | ||
|
||
public void testDeserDefaults() throws Exception | ||
{ | ||
ObjectReader r = MAPPER.reader(); | ||
assertNotSame(r, r.with(FromXmlParser.Feature.EMPTY_ELEMENT_AS_NULL)); | ||
} | ||
|
||
public void testSerDefaults() throws Exception | ||
{ | ||
ObjectReader r = MAPPER.reader(); | ||
assertNotSame(r, r.with(ToXmlGenerator.Feature.WRITE_XML_1_1)); | ||
} | ||
} |