use of org.springframework.boot.actuate.trace.WebRequestTraceFilter in project spring-boot by spring-projects.
the class TraceWebFilterAutoConfigurationTests method overrideTraceFilter.
@Test
public void overrideTraceFilter() throws Exception {
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(CustomTraceFilterConfig.class, PropertyPlaceholderAutoConfiguration.class, TraceRepositoryAutoConfiguration.class, TraceWebFilterAutoConfiguration.class);
WebRequestTraceFilter filter = context.getBean(WebRequestTraceFilter.class);
assertThat(filter).isInstanceOf(TestWebRequestTraceFilter.class);
context.close();
}
Aggregations