From fd3f3c230d71c7545239b08b8c4e51f553bcbd44 Mon Sep 17 00:00:00 2001 From: "Kim, Joo Hyuk" Date: Fri, 10 Jan 2025 01:38:20 +0900 Subject: [PATCH] Fix failing tests post databind#4858 --- .../jackson/dataformat/xml/deser/EmptyWithScalarsTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/tools/jackson/dataformat/xml/deser/EmptyWithScalarsTest.java b/src/test/java/tools/jackson/dataformat/xml/deser/EmptyWithScalarsTest.java index b9e5a48d7..8ea4cf9b7 100644 --- a/src/test/java/tools/jackson/dataformat/xml/deser/EmptyWithScalarsTest.java +++ b/src/test/java/tools/jackson/dataformat/xml/deser/EmptyWithScalarsTest.java @@ -43,7 +43,9 @@ static class MiscOther { public Boolean B = Boolean.TRUE; } - private final XmlMapper MAPPER = newMapper(); + private final XmlMapper MAPPER = mapperBuilder() + .disable(DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES) + .build(); /* /**********************************************************************