diff --git a/framework-platform/framework-platform.gradle b/framework-platform/framework-platform.gradle index 2fea29fea4eb..bf9161799061 100644 --- a/framework-platform/framework-platform.gradle +++ b/framework-platform/framework-platform.gradle @@ -15,13 +15,13 @@ dependencies { api(platform("io.rsocket:rsocket-bom:1.1.4")) api(platform("org.apache.groovy:groovy-bom:4.0.24")) api(platform("org.apache.logging.log4j:log4j-bom:3.0.0-beta3")) - api(platform("org.assertj:assertj-bom:3.27.0")) + api(platform("org.assertj:assertj-bom:3.27.1")) api(platform("org.eclipse.jetty:jetty-bom:12.0.15")) api(platform("org.eclipse.jetty.ee10:jetty-ee10-bom:12.0.15")) api(platform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.9.0")) api(platform("org.jetbrains.kotlinx:kotlinx-serialization-bom:1.7.3")) api(platform("org.junit:junit-bom:5.11.4")) - api(platform("org.mockito:mockito-bom:5.14.2")) + api(platform("org.mockito:mockito-bom:5.15.2")) constraints { api("com.fasterxml:aalto-xml:1.3.2") diff --git a/spring-aop/src/test/java/org/springframework/aop/framework/AbstractProxyExceptionHandlingTests.java b/spring-aop/src/test/java/org/springframework/aop/framework/AbstractProxyExceptionHandlingTests.java index d187204d9d75..2c16579668d8 100644 --- a/spring-aop/src/test/java/org/springframework/aop/framework/AbstractProxyExceptionHandlingTests.java +++ b/spring-aop/src/test/java/org/springframework/aop/framework/AbstractProxyExceptionHandlingTests.java @@ -97,7 +97,7 @@ void targetThrowsUndeclaredCheckedException() throws DeclaredCheckedException { assertThat(throwableSeenByInterceptor).isSameAs(undeclaredCheckedException); assertThat(throwableSeenByCaller) .isInstanceOf(UndeclaredThrowableException.class) - .hasCauseReference(undeclaredCheckedException); + .cause().isSameAs(undeclaredCheckedException); } @Test @@ -145,7 +145,7 @@ void targetThrowsUndeclaredCheckedException() throws DeclaredCheckedException { invokeProxy(); assertThat(throwableSeenByCaller) .isInstanceOf(UndeclaredThrowableException.class) - .hasCauseReference(undeclaredCheckedException); + .cause().isSameAs(undeclaredCheckedException); } @Test