Closes gh-14597
This commit is contained in:
Johnny Lim 2018-09-25 15:56:37 +09:00 committed by Stephane Nicoll
parent c403ac9db6
commit 698bbd6a9e
6 changed files with 10 additions and 11 deletions

View File

@ -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 {

View File

@ -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 {

View File

@ -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

View File

@ -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
*/

View File

@ -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

View File

@ -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(