File tree 1 file changed +3
-3
lines changed
src/test/java/com/fasterxml/jackson/databind/interop
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,14 @@ public void testExceptionSerializabilitySimple() throws Exception
27
27
MAPPER .readValue ("{\" x\" : \" B\" }" , ClassToRead .class );
28
28
fail ("Should not have passed" );
29
29
} catch (JsonMappingException e ) {
30
- verifyException (e , "not a valid Integer " );
30
+ verifyException (e , "Cannot deserialize value of type `int` from String \" B \" : not a valid `int` value " );
31
31
_testSerializability (e );
32
32
}
33
33
try {
34
34
MAPPER .readValue ("{\" classToRead\" : {\" x\" : \" B\" }}" , ContainerClassToRead .class );
35
35
fail ("Should not have passed" );
36
36
} catch (JsonMappingException e ) {
37
- verifyException (e , "not a valid Integer " );
37
+ verifyException (e , "Cannot deserialize value of type `int` from String \" B \" : not a valid `int` value " );
38
38
_testSerializability (e );
39
39
}
40
40
}
@@ -46,7 +46,7 @@ public void testExceptionSerializabilityStructured() throws Exception
46
46
ContainerClassesToRead .class );
47
47
fail ("Should not have passed" );
48
48
} catch (JsonMappingException e ) {
49
- verifyException (e , "not a valid Integer " );
49
+ verifyException (e , "Cannot deserialize value of type `int` from String \" B \" : not a valid `int` value " );
50
50
_testSerializability (e );
51
51
}
52
52
}
You can’t perform that action at this time.
0 commit comments