diff --git a/framework-platform/framework-platform.gradle b/framework-platform/framework-platform.gradle index aacbb59897..2caf0f24a9 100644 --- a/framework-platform/framework-platform.gradle +++ b/framework-platform/framework-platform.gradle @@ -15,7 +15,7 @@ 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:2.21.1")) - 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.8.1")) 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 6b3e34cba8..b03cc7f9a9 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 @@ -99,7 +99,7 @@ abstract class AbstractProxyExceptionHandlingTests { assertThat(throwableSeenByInterceptor).isSameAs(undeclaredCheckedException); assertThat(throwableSeenByCaller) .isInstanceOf(UndeclaredThrowableException.class) - .hasCauseReference(undeclaredCheckedException); + .cause().isSameAs(undeclaredCheckedException); } @Test @@ -147,7 +147,7 @@ abstract class AbstractProxyExceptionHandlingTests { invokeProxy(); assertThat(throwableSeenByCaller) .isInstanceOf(UndeclaredThrowableException.class) - .hasCauseReference(undeclaredCheckedException); + .cause().isSameAs(undeclaredCheckedException); } @Test