diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/web/trace/HttpTraceAutoConfigurationTests.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/web/trace/HttpTraceAutoConfigurationTests.java index bb2ef24027..e0bf832b7c 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/web/trace/HttpTraceAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/web/trace/HttpTraceAutoConfigurationTests.java @@ -91,6 +91,13 @@ public class HttpTraceAutoConfigurationTests { }); } + @Test + public void configuresServletFilter() { + this.contextRunner.withUserConfiguration(HttpTraceRepositoryConfiguration.class) + .run((context) -> assertThat(context) + .hasSingleBean(HttpTraceFilter.class)); + } + @Test public void usesUserProvidedServletFilter() { this.contextRunner.withUserConfiguration(HttpTraceRepositoryConfiguration.class)