File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/test/scala/tools/jackson/module/scala/deser Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11package tools .jackson .module .scala .deser
22
33import tools .jackson .core .`type` .TypeReference
4- import tools .jackson .databind . DatabindException
4+ import tools .jackson .core . exc . InputCoercionException
55import tools .jackson .databind .annotation .JsonDeserialize
66import tools .jackson .module .scala .deser .OptionWithNumberDeserializerTest .{OptionLong , OptionLongWithDefault }
77
@@ -57,7 +57,8 @@ class PrimitiveContainerTest extends DeserializationFixture
5757 }
5858
5959 it should " enforce type constraints" in { f =>
60- val thrown = intercept[DatabindException ] {
60+ // InputCoercionException in Jackson 3 - was DatabindException in Jackson 2
61+ val thrown = intercept[InputCoercionException ] {
6162 f.readValue(""" {"value":9223372036854775807}""" , new TypeReference [AnnotatedOptionInt ] {}).value.get
6263 }
6364 thrown.getMessage should startWith (" Numeric value (9223372036854775807) out of range" )
You can’t perform that action at this time.
0 commit comments