Skip to content

Commit df951fb

Browse files
committed
Update MissingEntitiesAsNullTest.java
1 parent 8017a55 commit df951fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hibernate7/src/test/java/com/fasterxml/jackson/datatype/hibernate7/MissingEntitiesAsNullTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ public void testExceptionWithInvalidForeignKey() throws Exception {
9191
fail("Expected EntityNotFoundException exception");
9292

9393
} catch (JsonMappingException e) {
94-
assertEquals("Unable to find com.fasterxml.jackson.datatype.hibernate7.data.Product with id X10_1678", e.getCause().getMessage());
94+
assertEquals("No row with the given identifier exists for entity [com.fasterxml.jackson.datatype.hibernate7.data.Product with id 'X10_1678']",
95+
e.getCause().getMessage());
9596
} finally {
9697
emf.close();
9798
}

0 commit comments

Comments
 (0)