diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/MetricsAutoConfigurationWithLog4j2AndLogbackTests.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/MetricsAutoConfigurationWithLog4j2AndLogbackTests.java index a56fe1cbe29..f73061fc49c 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/MetricsAutoConfigurationWithLog4j2AndLogbackTests.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/MetricsAutoConfigurationWithLog4j2AndLogbackTests.java @@ -20,10 +20,7 @@ import io.micrometer.core.instrument.binder.logging.LogbackMetrics; import org.junit.Test; import org.junit.runner.RunWith; -import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; import org.springframework.boot.autoconfigure.AutoConfigurations; -import org.springframework.boot.autoconfigure.condition.ConditionEvaluationReport; -import org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportMessage; import org.springframework.boot.test.context.runner.ApplicationContextRunner; import org.springframework.boot.testsupport.runner.classpath.ClassPathOverrides; import org.springframework.boot.testsupport.runner.classpath.ModifiedClassPathRunner; @@ -47,10 +44,6 @@ public class MetricsAutoConfigurationWithLog4j2AndLogbackTests { @Test public void doesNotConfigureLogbackMetrics() { this.contextRunner.run((context) -> { - System.out.println( - new ConditionEvaluationReportMessage(ConditionEvaluationReport - .get((ConfigurableListableBeanFactory) context - .getAutowireCapableBeanFactory()))); assertThat(context).doesNotHaveBean(LogbackMetrics.class); }); } diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 6b2aeb97b3c..9e19cb9c2bb 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -266,7 +266,7 @@ behalf. The algorithm used to determine a `WebEnvironmentType` is fairly simple: * If Spring MVC is present, an `AnnotationConfigServletWebServerApplicationContext` is used * If Spring MVC is not present and Spring WebFlux is present, an -`AnnotationConfigReactiveWebApplicationContext` is used +`AnnotationConfigReactiveWebServerApplicationContext` is used * Otherwise, `AnnotationConfigApplicationContext` is used This means that if you are using Spring MVC and the new `WebClient` from Spring WebFlux in diff --git a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/buildinfo/BuildInfoIntegrationTests.java b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/buildinfo/BuildInfoIntegrationTests.java index d68f075c6e2..4880bf69a4e 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/buildinfo/BuildInfoIntegrationTests.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/buildinfo/BuildInfoIntegrationTests.java @@ -91,7 +91,6 @@ public class BuildInfoIntegrationTests { .getOutcome()).isEqualTo(TaskOutcome.SUCCESS); BuildResult result = this.gradleBuild.build("buildInfo", "-PnullTime", "-PprojectVersion=0.2.0"); - System.out.println(result.getOutput()); assertThat(result.task(":buildInfo").getOutcome()).isEqualTo(TaskOutcome.SUCCESS); } diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/security/reactive/ApplicationContextServerWebExchangeMatcherTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/security/reactive/ApplicationContextServerWebExchangeMatcherTests.java index 0d1bd17dcd5..bbb39a57d1c 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/security/reactive/ApplicationContextServerWebExchangeMatcherTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/security/reactive/ApplicationContextServerWebExchangeMatcherTests.java @@ -57,7 +57,7 @@ public class ApplicationContextServerWebExchangeMatcherTests { @Test public void matchesWhenContextClassIsApplicationContextShouldProvideContext() { - ServerWebExchange exchange = createHttpWebHandlerAdapter(); + ServerWebExchange exchange = createExchange(); StaticApplicationContext context = (StaticApplicationContext) exchange .getApplicationContext(); assertThat(new TestApplicationContextServerWebExchangeMatcher<>( @@ -67,7 +67,7 @@ public class ApplicationContextServerWebExchangeMatcherTests { @Test public void matchesWhenContextClassIsExistingBeanShouldProvideBean() { - ServerWebExchange exchange = createHttpWebHandlerAdapter(); + ServerWebExchange exchange = createExchange(); StaticApplicationContext context = (StaticApplicationContext) exchange .getApplicationContext(); context.registerSingleton("existingBean", ExistingBean.class); @@ -79,7 +79,7 @@ public class ApplicationContextServerWebExchangeMatcherTests { @Test public void matchesWhenContextClassIsMissingBeanShouldProvideException() { - ServerWebExchange exchange = createHttpWebHandlerAdapter(); + ServerWebExchange exchange = createExchange(); Supplier supplier = new TestApplicationContextServerWebExchangeMatcher<>( ExistingBean.class).callMatchesAndReturnProvidedContext(exchange); this.thrown.expect(NoSuchBeanDefinitionException.class); @@ -96,7 +96,7 @@ public class ApplicationContextServerWebExchangeMatcherTests { .callMatchesAndReturnProvidedContext(exchange); } - private ServerWebExchange createHttpWebHandlerAdapter() { + private ServerWebExchange createExchange() { StaticApplicationContext context = new StaticApplicationContext(); TestHttpWebHandlerAdapter adapter = new TestHttpWebHandlerAdapter( mock(WebHandler.class));