|
|
|
|
@ -34,8 +34,10 @@ import org.springframework.aot.generate.MethodReference;
@@ -34,8 +34,10 @@ import org.springframework.aot.generate.MethodReference;
|
|
|
|
|
import org.springframework.aot.test.generator.compile.Compiled; |
|
|
|
|
import org.springframework.aot.test.generator.compile.TestCompiler; |
|
|
|
|
import org.springframework.beans.factory.BeanCreationException; |
|
|
|
|
import org.springframework.beans.factory.aot.AotFactoriesLoader; |
|
|
|
|
import org.springframework.beans.factory.aot.BeanFactoryInitializationAotContribution; |
|
|
|
|
import org.springframework.beans.factory.aot.BeanFactoryInitializationCode; |
|
|
|
|
import org.springframework.beans.factory.aot.BeanRegistrationAotProcessor; |
|
|
|
|
import org.springframework.beans.factory.aot.TestBeanRegistrationsAotProcessor; |
|
|
|
|
import org.springframework.beans.factory.config.BeanDefinition; |
|
|
|
|
import org.springframework.beans.factory.config.PropertiesFactoryBean; |
|
|
|
|
@ -77,6 +79,12 @@ class ScopedProxyBeanRegistrationAotProcessorTests {
@@ -77,6 +79,12 @@ class ScopedProxyBeanRegistrationAotProcessorTests {
|
|
|
|
|
this.beanFactoryInitializationCode = new MockBeanFactoryInitializationCode(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void scopedProxyBeanRegistrationAotProcessorIsRegistered() { |
|
|
|
|
assertThat(new AotFactoriesLoader(this.beanFactory).load(BeanRegistrationAotProcessor.class)) |
|
|
|
|
.anyMatch(ScopedProxyBeanRegistrationAotProcessor.class::isInstance); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void getBeanRegistrationCodeGeneratorWhenNotScopedProxy() { |
|
|
|
|
BeanDefinition beanDefinition = BeanDefinitionBuilder |
|
|
|
|
|