Skip to content

Commit

Permalink
Update OptionWithNumberDeserializerTest.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Sep 20, 2021
1 parent ebaf6c5 commit 30eaa53
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class OptionWithNumberDeserializerTest extends DeserializerTest with BeforeAndAf
val v1 = deserialize("""{"valueLong":151}""", classOf[OptionLong])
v1 shouldBe OptionLong(Some(151L))
v1.valueLong.get shouldBe 151L
//this will next call will fail with a Scala unboxing exception unless you BeanIntrospector.registerReferencedType
//this will next call will fail with a Scala unboxing exception unless you ScalaAnnotationIntrospector.registerReferencedType
//or use one of the equivalent classes in OptionWithNumberDeserializerTest
useOptionLong(v1.valueLong) shouldBe 302L
}
Expand Down

0 comments on commit 30eaa53

Please sign in to comment.