Skip to content

Commit d4f1b77

Browse files
committed
Minor fix to a unit test: was not properly configure mapper in alt case
1 parent 44f72bd commit d4f1b77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/java/com/fasterxml/jackson/databind/jsontype/vld/AnnotatedPolymorphicValidationTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public void testPolymorphicWithUnsafeBaseType() throws IOException
7676

7777
// but may with proper validator
7878
ObjectMapper customMapper = JsonMapper.builder()
79+
.enable(MapperFeature.BLOCK_UNSAFE_POLYMORPHIC_BASE_TYPES)
7980
.polymorphicTypeValidator(new NumbersAreOkValidator())
8081
.build();
8182

0 commit comments

Comments
 (0)