Harmonize bean type visibility in TestDatabaseAutoConfiguration

Closes gh-28264
This commit is contained in:
Stephane Nicoll 2021-10-08 15:45:36 +02:00
parent 6e4ded30df
commit c56bba98d9
1 changed files with 4 additions and 5 deletions

View File

@ -72,12 +72,12 @@ public class TestDatabaseAutoConfiguration {
@Bean
@ConditionalOnProperty(prefix = "spring.test.database", name = "replace", havingValue = "ANY",
matchIfMissing = true)
public static EmbeddedDataSourceBeanFactoryPostProcessor embeddedDataSourceBeanFactoryPostProcessor() {
static EmbeddedDataSourceBeanFactoryPostProcessor embeddedDataSourceBeanFactoryPostProcessor() {
return new EmbeddedDataSourceBeanFactoryPostProcessor();
}
@Order(Ordered.LOWEST_PRECEDENCE)
private static class EmbeddedDataSourceBeanFactoryPostProcessor implements BeanDefinitionRegistryPostProcessor {
static class EmbeddedDataSourceBeanFactoryPostProcessor implements BeanDefinitionRegistryPostProcessor {
private static final Log logger = LogFactory.getLog(EmbeddedDataSourceBeanFactoryPostProcessor.class);
@ -133,8 +133,7 @@ public class TestDatabaseAutoConfiguration {
}
private static class EmbeddedDataSourceFactoryBean
implements FactoryBean<DataSource>, EnvironmentAware, InitializingBean {
static class EmbeddedDataSourceFactoryBean implements FactoryBean<DataSource>, EnvironmentAware, InitializingBean {
private EmbeddedDataSourceFactory factory;
@ -167,7 +166,7 @@ public class TestDatabaseAutoConfiguration {
}
private static class EmbeddedDataSourceFactory {
static class EmbeddedDataSourceFactory {
private final Environment environment;