From ee5e2197575b63345d8df2c2c79833bd2045b17d Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Fri, 18 Dec 2020 17:52:42 -0800 Subject: [PATCH] ... --- .../javaprop/deser/convert/CoerceToBooleanTest.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/properties/src/test/java/com/fasterxml/jackson/dataformat/javaprop/deser/convert/CoerceToBooleanTest.java b/properties/src/test/java/com/fasterxml/jackson/dataformat/javaprop/deser/convert/CoerceToBooleanTest.java index ef311784..e3f676cb 100644 --- a/properties/src/test/java/com/fasterxml/jackson/dataformat/javaprop/deser/convert/CoerceToBooleanTest.java +++ b/properties/src/test/java/com/fasterxml/jackson/dataformat/javaprop/deser/convert/CoerceToBooleanTest.java @@ -35,14 +35,16 @@ static class AtomicBooleanWrapper { private final ObjectMapper DEFAULT_MAPPER = newPropertiesMapper(); - private final ObjectMapper MAPPER_STRING_TO_BOOLEAN_FAIL; { - MAPPER_STRING_TO_BOOLEAN_FAIL = newPropertiesMapper(); + private final ObjectMapper MAPPER_STRING_TO_BOOLEAN_FAIL + = propertiesMapperBuilder().build(); + { MAPPER_STRING_TO_BOOLEAN_FAIL.coercionConfigFor(LogicalType.Boolean) .setCoercion(CoercionInputShape.String, CoercionAction.Fail); } - private final ObjectMapper MAPPER_EMPTY_TO_BOOLEAN_FAIL; { - MAPPER_EMPTY_TO_BOOLEAN_FAIL = newPropertiesMapper(); + private final ObjectMapper MAPPER_EMPTY_TO_BOOLEAN_FAIL + = propertiesMapperBuilder().build(); + { MAPPER_EMPTY_TO_BOOLEAN_FAIL.coercionConfigFor(LogicalType.Boolean) .setCoercion(CoercionInputShape.EmptyString, CoercionAction.Fail); }