@ -66,7 +66,7 @@ public class TraceWebFilterAutoConfigurationTests {
@@ -66,7 +66,7 @@ public class TraceWebFilterAutoConfigurationTests {
public void skipsFilterIfPropertyDisabled ( ) throws Exception {
load ( "endpoints.trace.filter.enabled:false" ) ;
assertThat ( this . context . getBeansOfType ( WebRequestTraceFilter . class ) . size ( ) )
. isEqualTo ( 0 ) ;
. isEqualTo ( 0 ) ;
}
private void load ( String . . . environment ) {
@ -74,16 +74,16 @@ public class TraceWebFilterAutoConfigurationTests {
@@ -74,16 +74,16 @@ public class TraceWebFilterAutoConfigurationTests {
}
private void load ( Class < ? > config , String . . . environment ) {
AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext ( ) ;
EnvironmentTestUtils . addEnvironment ( ctx , environment ) ;
AnnotationConfigApplicationContext con te xt = new AnnotationConfigApplicationContext ( ) ;
EnvironmentTestUtils . addEnvironment ( con te xt , environment ) ;
if ( config ! = null ) {
ctx . register ( config ) ;
con te xt . register ( config ) ;
}
ctx . register ( PropertyPlaceholderAutoConfiguration . class ,
TraceRepositoryAutoConfiguration . class ,
TraceWebFilterAutoConfiguration . class ) ;
ctx . refresh ( ) ;
this . context = ctx ;
con te xt . register ( PropertyPlaceholderAutoConfiguration . class ,
TraceRepositoryAutoConfiguration . class ,
TraceWebFilterAutoConfiguration . class ) ;
con te xt . refresh ( ) ;
this . context = con te xt ;
}
@Configuration