Skip to content

Commit 76acbc5

Browse files
vbabaninstIncMale
andauthored
Update src/integrationTest/java/com/mongodb/hibernate/jdbc/MongoPreparedStatementIntegrationTests.java
Co-authored-by: Valentin Kovalenko <[email protected]>
1 parent 9577603 commit 76acbc5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/integrationTest/java/com/mongodb/hibernate/jdbc/MongoPreparedStatementIntegrationTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -673,9 +673,9 @@ void testNotSupportedCommands(String commandName) {
673673
%s: "books"
674674
}""",
675675
commandName))) {
676-
SQLFeatureNotSupportedException exception =
677-
assertThrows(SQLFeatureNotSupportedException.class, pstm::executeUpdate);
678-
assertThat(exception.getMessage()).contains(commandName);
676+
assertThatThrownBy(pstm::executeUpdate)
677+
.isInstanceOf(SQLFeatureNotSupportedException.class)
678+
.hasMessageContaining(commandName);
679679
}
680680
});
681681
}

0 commit comments

Comments
 (0)