Skip to content

Commit 536a323

Browse files
committed
Fix a test
1 parent 0dde658 commit 536a323

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/com/fasterxml/jackson/dataformat/xml/FeatureDefaultsTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.fasterxml.jackson.dataformat.xml;
22

33
import com.fasterxml.jackson.databind.ObjectReader;
4+
import com.fasterxml.jackson.databind.ObjectWriter;
45
import com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser;
56
import com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator;
67

@@ -16,7 +17,7 @@ public void testDeserDefaults() throws Exception
1617

1718
public void testSerDefaults() throws Exception
1819
{
19-
ObjectReader r = MAPPER.reader();
20-
assertNotSame(r, r.with(ToXmlGenerator.Feature.WRITE_XML_1_1));
20+
ObjectWriter w = MAPPER.writer();
21+
assertNotSame(w, w.with(ToXmlGenerator.Feature.WRITE_XML_1_1));
2122
}
2223
}

0 commit comments

Comments
 (0)