File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/test/java/com/fasterxml/jackson/databind/interop Expand file tree Collapse file tree 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
2727 MAPPER .readValue ("{\" x\" : \" B\" }" , ClassToRead .class );
2828 fail ("Should not have passed" );
2929 } 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 " );
3131 _testSerializability (e );
3232 }
3333 try {
3434 MAPPER .readValue ("{\" classToRead\" : {\" x\" : \" B\" }}" , ContainerClassToRead .class );
3535 fail ("Should not have passed" );
3636 } 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 " );
3838 _testSerializability (e );
3939 }
4040 }
@@ -46,7 +46,7 @@ public void testExceptionSerializabilityStructured() throws Exception
4646 ContainerClassesToRead .class );
4747 fail ("Should not have passed" );
4848 } 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 " );
5050 _testSerializability (e );
5151 }
5252 }
You can’t perform that action at this time.
0 commit comments