Fix incomplete assertions

See gh-34503
This commit is contained in:
Andy Wilkinson
2023-03-24 16:48:45 +00:00
parent 7828fbfdab
commit b91f814e42
2 changed files with 2 additions and 2 deletions

View File

@@ -657,7 +657,7 @@ class WebFluxAutoConfigurationTests {
.withPropertyValues("spring.webflux.problemdetails.enabled:true")
.run((context) -> {
assertThat(context).hasSingleBean(ProblemDetailsExceptionHandler.class);
assertThat(AopUtils.isCglibProxy(context.getBean(ProblemDetailsExceptionHandler.class)));
assertThat(AopUtils.isCglibProxy(context.getBean(ProblemDetailsExceptionHandler.class))).isTrue();
});
}

View File

@@ -1000,7 +1000,7 @@ class WebMvcAutoConfigurationTests {
.withPropertyValues("spring.mvc.problemdetails.enabled:true")
.run((context) -> {
assertThat(context).hasSingleBean(ProblemDetailsExceptionHandler.class);
assertThat(AopUtils.isCglibProxy(context.getBean(ProblemDetailsExceptionHandler.class)));
assertThat(AopUtils.isCglibProxy(context.getBean(ProblemDetailsExceptionHandler.class))).isTrue();
});
}