From 698bbd6a9e347bd54c5d1697609eecea392c9e95 Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Tue, 25 Sep 2018 15:56:37 +0900 Subject: [PATCH] Polish Closes gh-14597 --- .../dynatrace/DynatracePropertiesConfigAdapterTests.java | 2 +- .../elastic/ElasticPropertiesConfigAdapterTests.java | 2 +- .../ReactiveOAuth2ClientAutoConfigurationTests.java | 8 ++++---- .../boot/devtools/logger/DevToolsLogFactory.java | 5 ++--- .../src/main/asciidoc/spring-boot-features.adoc | 2 +- .../AutoConfigureAnnotationProcessorTests.java | 2 +- 6 files changed, 10 insertions(+), 11 deletions(-) diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/dynatrace/DynatracePropertiesConfigAdapterTests.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/dynatrace/DynatracePropertiesConfigAdapterTests.java index b8e6e6e9c1..4fb38888b0 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/dynatrace/DynatracePropertiesConfigAdapterTests.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/dynatrace/DynatracePropertiesConfigAdapterTests.java @@ -23,7 +23,7 @@ import static org.assertj.core.api.Assertions.assertThat; /** * Tests for {@link DynatracePropertiesConfigAdapter}. * - * @author Andy Wilkiknson + * @author Andy Wilkinson */ public class DynatracePropertiesConfigAdapterTests { diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/elastic/ElasticPropertiesConfigAdapterTests.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/elastic/ElasticPropertiesConfigAdapterTests.java index 427d63344e..fd7ee091be 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/elastic/ElasticPropertiesConfigAdapterTests.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/elastic/ElasticPropertiesConfigAdapterTests.java @@ -23,7 +23,7 @@ import static org.assertj.core.api.Assertions.assertThat; /** * Tests for {@link ElasticPropertiesConfigAdapter}. * - * @author Andy Wilkiknson + * @author Andy Wilkinson */ public class ElasticPropertiesConfigAdapterTests { diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/client/reactive/ReactiveOAuth2ClientAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/client/reactive/ReactiveOAuth2ClientAutoConfigurationTests.java index acc2708aed..a9a140a929 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/client/reactive/ReactiveOAuth2ClientAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/client/reactive/ReactiveOAuth2ClientAutoConfigurationTests.java @@ -56,11 +56,11 @@ public class ReactiveOAuth2ClientAutoConfigurationTests { @Test public void autoConfigurationShouldBackOffForServletEnvironments() { - WebApplicationContextRunner contextRunner = new WebApplicationContextRunner() + new WebApplicationContextRunner() .withConfiguration(AutoConfigurations - .of(ReactiveOAuth2ClientAutoConfiguration.class)); - contextRunner.run((context) -> assertThat(context) - .doesNotHaveBean(ReactiveOAuth2ClientAutoConfiguration.class)); + .of(ReactiveOAuth2ClientAutoConfiguration.class)) + .run((context) -> assertThat(context) + .doesNotHaveBean(ReactiveOAuth2ClientAutoConfiguration.class)); } @Test diff --git a/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/logger/DevToolsLogFactory.java b/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/logger/DevToolsLogFactory.java index 9454570ac7..eccfae58e3 100644 --- a/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/logger/DevToolsLogFactory.java +++ b/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/logger/DevToolsLogFactory.java @@ -24,7 +24,6 @@ import org.apache.commons.logging.Log; import org.springframework.boot.context.event.ApplicationPreparedEvent; import org.springframework.boot.logging.DeferredLog; import org.springframework.context.ApplicationListener; -import org.springframework.data.domain.AbstractPageRequest; /** * Devtools deferred logging support. @@ -41,8 +40,8 @@ public final class DevToolsLogFactory { /** * Get a {@link Log} instance for the specified source that will be automatically - * {@link DeferredLog#switchTo(Class) switched} then the {@link AbstractPageRequest - * context is prepared}. + * {@link DeferredLog#switchTo(Class) switched} when the + * {@link ApplicationPreparedEvent context is prepared}. * @param source the source for logging * @return a {@link DeferredLog} instance */ 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 f94a7a6480..66874e6c8f 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 @@ -7163,7 +7163,7 @@ If you prefer your test to run against a real database, you can use the ==== Auto-configured Data JDBC Tests `@DataJdbcTest` is similar to `@JdbcTest` but is for tests that use Spring Data JDBC repositories. By default, it configures an in-memory embedded database, a `JdbcTemplate`, -and Spring Data JDBD repositories. Regular `@Component` beans are not loaded into +and Spring Data JDBC repositories. Regular `@Component` beans are not loaded into the `ApplicationContext`. TIP: A list of the auto-configurations that are enabled by `@DataJdbcTest` can be diff --git a/spring-boot-project/spring-boot-tools/spring-boot-autoconfigure-processor/src/test/java/org/springframework/boot/autoconfigureprocessor/AutoConfigureAnnotationProcessorTests.java b/spring-boot-project/spring-boot-tools/spring-boot-autoconfigure-processor/src/test/java/org/springframework/boot/autoconfigureprocessor/AutoConfigureAnnotationProcessorTests.java index acf14febef..e1ae7f4cf3 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-autoconfigure-processor/src/test/java/org/springframework/boot/autoconfigureprocessor/AutoConfigureAnnotationProcessorTests.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-autoconfigure-processor/src/test/java/org/springframework/boot/autoconfigureprocessor/AutoConfigureAnnotationProcessorTests.java @@ -80,7 +80,7 @@ public class AutoConfigureAnnotationProcessorTests { } @Test - public void annoatedClassWithOnBeanThatHasName() throws Exception { + public void annotatedClassWithOnBeanThatHasName() throws Exception { Properties properties = compile(TestOnBeanWithNameClassConfiguration.class); assertThat(properties).hasSize(3); assertThat(properties).containsEntry(