From c11d0d157c9e26484b1f9526ca34ef6e23b3d9c9 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Fri, 1 Dec 2023 13:41:02 +0100 Subject: [PATCH] Update CaseObjectDeserializerTest.scala --- .../module/scala/deser/CaseObjectDeserializerTest.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/scala/com/fasterxml/jackson/module/scala/deser/CaseObjectDeserializerTest.scala b/src/test/scala/com/fasterxml/jackson/module/scala/deser/CaseObjectDeserializerTest.scala index 9f65e681..b0c4cea3 100644 --- a/src/test/scala/com/fasterxml/jackson/module/scala/deser/CaseObjectDeserializerTest.scala +++ b/src/test/scala/com/fasterxml/jackson/module/scala/deser/CaseObjectDeserializerTest.scala @@ -22,7 +22,7 @@ class CaseObjectDeserializerTest extends DeserializerTest { val original = TestObject val json = mapper.writeValueAsString(original) val deserialized = mapper.readValue(json, TestObject.getClass) - assert(deserialized == original) + assert(deserialized === original) } it should "deserialize Foo and not create a new instance" in { @@ -30,7 +30,7 @@ class CaseObjectDeserializerTest extends DeserializerTest { val original = Foo val json = mapper.writeValueAsString(original) val deserialized = mapper.readValue(json, Foo.getClass) - assert(deserialized == original) + assert(deserialized === original) } it should "deserialize Foo and not create a new instance (visibility settings)" in { @@ -42,7 +42,7 @@ class CaseObjectDeserializerTest extends DeserializerTest { val original = Foo val json = mapper.writeValueAsString(original) val deserialized = mapper.readValue(json, Foo.getClass) - assert(deserialized == original) + assert(deserialized === original) } "An ObjectMapper with ClassTagExtensions and DefaultScalaModule" should "deserialize a case object and not create a new instance" in { @@ -52,7 +52,7 @@ class CaseObjectDeserializerTest extends DeserializerTest { val original = TestObject val json = mapper.writeValueAsString(original) val deserialized = mapper.readValue[TestObject.type](json) - assert(deserialized == original) + assert(deserialized === original) } "An ObjectMapper without ScalaObjectDeserializerModule" should "deserialize a case object but create a new instance" in {