Skip to content

Commit b91f814

Browse files
committed
Fix incomplete assertions
See gh-34503
1 parent 7828fbf commit b91f814

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/WebFluxAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ void problemDetailsExceptionHandlerDoesNotPreventProxying() {
657657
.withPropertyValues("spring.webflux.problemdetails.enabled:true")
658658
.run((context) -> {
659659
assertThat(context).hasSingleBean(ProblemDetailsExceptionHandler.class);
660-
assertThat(AopUtils.isCglibProxy(context.getBean(ProblemDetailsExceptionHandler.class)));
660+
assertThat(AopUtils.isCglibProxy(context.getBean(ProblemDetailsExceptionHandler.class))).isTrue();
661661
});
662662
}
663663

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ void problemDetailsExceptionHandlerDoesNotPreventProxying() {
10001000
.withPropertyValues("spring.mvc.problemdetails.enabled:true")
10011001
.run((context) -> {
10021002
assertThat(context).hasSingleBean(ProblemDetailsExceptionHandler.class);
1003-
assertThat(AopUtils.isCglibProxy(context.getBean(ProblemDetailsExceptionHandler.class)));
1003+
assertThat(AopUtils.isCglibProxy(context.getBean(ProblemDetailsExceptionHandler.class))).isTrue();
10041004
});
10051005
}
10061006

0 commit comments

Comments
 (0)