From cb8fc1292d27b13178ab608b7e277dd3d68d8203 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Thu, 25 Jul 2024 17:33:48 +0100 Subject: [PATCH] Update IgnorableFieldDeserializerTest.scala --- .../module/scala/deser/IgnorableFieldDeserializerTest.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/scala/com/fasterxml/jackson/module/scala/deser/IgnorableFieldDeserializerTest.scala b/src/test/scala/com/fasterxml/jackson/module/scala/deser/IgnorableFieldDeserializerTest.scala index fc5bbddb..43c3ee31 100644 --- a/src/test/scala/com/fasterxml/jackson/module/scala/deser/IgnorableFieldDeserializerTest.scala +++ b/src/test/scala/com/fasterxml/jackson/module/scala/deser/IgnorableFieldDeserializerTest.scala @@ -13,14 +13,14 @@ class IgnorableFieldDeserializerTest extends DeserializerTest { lazy val module: JacksonModule = DefaultScalaModule - "An ObjectMapper with the DefaultScalaModule" should "fail if field is not expected" in { + "An ObjectMapper with the DefaultScalaModule" should "fail if field is not expected (DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES enabled)" in { val mapper = newMapper intercept[UnrecognizedPropertyException] { mapper.readValue(genJson(100), classOf[ExtractFields]) } } - it should "succeed if field is not expected" in { + it should "succeed if field is not expected (DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES disabled)" in { val mapper = newBuilder .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) .build()