We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39df511 commit 11a2b07Copy full SHA for 11a2b07
src/integrationTest/java/com/mongodb/hibernate/jdbc/MongoPreparedStatementIntegrationTests.java
@@ -698,10 +698,9 @@ void testNotSupportedUpdateElements(String unsupportedElement) {
698
]
699
}""",
700
unsupportedElement))) {
701
- SQLFeatureNotSupportedException exception =
702
- assertThrows(SQLFeatureNotSupportedException.class, pstm::executeUpdate);
703
- assertThat(exception.getMessage())
704
- .isEqualTo(format("Unsupported elements in update command: [%s]", unsupportedElement));
+ assertThatThrownBy(pstm::executeUpdate)
+ .isInstanceOf(SQLFeatureNotSupportedException.class)
+ .hasMessage("Unsupported elements in update command: [%s]".formatted(unsupportedElement));
705
}
706
});
707
0 commit comments