Skip to content

Commit 923812b

Browse files
jinwookhcowtowncoder
authored andcommitted
fix test code (#2914)
1 parent cdd7430 commit 923812b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/com/fasterxml/jackson/databind/interop/ExceptionSerializableTest1195.java

+3-3
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)