Skip to content

Commit

Permalink
Minor test addition
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed May 28, 2023
1 parent 25c2cac commit 679c793
Showing 1 changed file with 22 additions and 0 deletions.
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));
}
}

0 comments on commit 679c793

Please sign in to comment.