Skip to content

Commit 8c07af1

Browse files
committed
Second unit test fix
1 parent 94d5797 commit 8c07af1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/java/tools/jackson/dataformat/xml/stream/XmlGeneratorTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@
88

99
import tools.jackson.dataformat.xml.XmlMapper;
1010
import tools.jackson.dataformat.xml.XmlTestUtil;
11+
import tools.jackson.dataformat.xml.XmlWriteFeature;
1112
import tools.jackson.dataformat.xml.ser.ToXmlGenerator;
1213

1314
import static org.junit.jupiter.api.Assertions.assertEquals;
1415

1516
public class XmlGeneratorTest extends XmlTestUtil
1617
{
17-
private final XmlMapper MAPPER = xmlMapper(true);
18+
private final XmlMapper MAPPER = mapperBuilder(true)
19+
.disable(XmlWriteFeature.WRITE_NULLS_AS_XSI_NIL)
20+
.build();
1821

1922
@Test
2023
public void testSimpleElement() throws Exception

0 commit comments

Comments
 (0)