mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polish
Closes gh-14597
This commit is contained in:
parent
c403ac9db6
commit
698bbd6a9e
@ -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 {
|
||||
|
||||
|
@ -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 {
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -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
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user