From 2c2ee92a39745af1f076c0eeebeeb48710872d87 Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Wed, 31 Jul 2019 17:53:09 +0900 Subject: [PATCH] Remove ConditionEvaluationReportLoggingListener in a test See gh-17742 --- .../ReactiveWebServerFactoryAutoConfigurationTests.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/ReactiveWebServerFactoryAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/ReactiveWebServerFactoryAutoConfigurationTests.java index 6805e7fe91..112c2efb4f 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/ReactiveWebServerFactoryAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/ReactiveWebServerFactoryAutoConfigurationTests.java @@ -26,8 +26,6 @@ import org.junit.jupiter.api.Test; import reactor.netty.http.server.HttpServer; import org.springframework.boot.autoconfigure.AutoConfigurations; -import org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener; -import org.springframework.boot.logging.LogLevel; import org.springframework.boot.test.context.FilteredClassLoader; import org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner; import org.springframework.boot.web.embedded.jetty.JettyReactiveWebServerFactory; @@ -278,7 +276,7 @@ class ReactiveWebServerFactoryAutoConfigurationTests { .withConfiguration(AutoConfigurations.of(ReactiveWebServerFactoryAutoConfiguration.class)) .withClassLoader(new FilteredClassLoader(Tomcat.class, Server.class, Undertow.class)) .withUserConfiguration(NettyServerCustomizerConfiguration.class, HttpHandlerConfiguration.class) - .withInitializer(new ConditionEvaluationReportLoggingListener(LogLevel.INFO)).run((context) -> { + .run((context) -> { NettyReactiveWebServerFactory factory = context.getBean(NettyReactiveWebServerFactory.class); assertThat(factory.getServerCustomizers()).hasSize(1); });