File tree 1 file changed +3
-2
lines changed
src/test/scala/tools/jackson/module/scala/deser
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
package tools .jackson .module .scala .deser
2
2
3
3
import tools .jackson .core .`type` .TypeReference
4
- import tools .jackson .databind . DatabindException
4
+ import tools .jackson .core . exc . InputCoercionException
5
5
import tools .jackson .databind .annotation .JsonDeserialize
6
6
import tools .jackson .module .scala .deser .OptionWithNumberDeserializerTest .{OptionLong , OptionLongWithDefault }
7
7
@@ -57,7 +57,8 @@ class PrimitiveContainerTest extends DeserializationFixture
57
57
}
58
58
59
59
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 ] {
61
62
f.readValue(""" {"value":9223372036854775807}""" , new TypeReference [AnnotatedOptionInt ] {}).value.get
62
63
}
63
64
thrown.getMessage should startWith (" Numeric value (9223372036854775807) out of range" )
You can’t perform that action at this time.
0 commit comments