Skip to content

Commit

Permalink
CodeQL: fix deprecated API usage (#545)
Browse files Browse the repository at this point in the history
Fixes #543
Fixes #544
  • Loading branch information
sleberknight authored Jan 4, 2025
1 parent 7f605df commit f7be626
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ void shouldConstructWithMessageAndSQLException() {

assertThat(runtimeSQLEx)
.hasMessage("java.sql.SQLException: Illegal syntax or something like that...")
.hasCauseReference(sqlEx);
.cause()
.isSameAs(sqlEx);
}

@Test
Expand All @@ -28,6 +29,7 @@ void shouldConstructWithSQLException() {

assertThat(runtimeSQLEx)
.hasMessage("Statement error")
.hasCauseReference(sqlEx);
.cause()
.isSameAs(sqlEx);
}
}

0 comments on commit f7be626

Please sign in to comment.