Skip to content

Commit 3aefa88

Browse files
committed
Add test to validate AOT infrastructure registration
See gh-28561
1 parent 176ea5e commit 3aefa88

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spring-beans/src/test/java/org/springframework/beans/factory/aot/BeanRegistrationsAotProcessorTests.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@
3333
*/
3434
class BeanRegistrationsAotProcessorTests {
3535

36+
@Test
37+
void beanRegistrationsAotProcessorIsRegistered() {
38+
assertThat(new AotFactoriesLoader(new DefaultListableBeanFactory())
39+
.load(BeanFactoryInitializationAotProcessor.class))
40+
.anyMatch(BeanRegistrationsAotProcessor.class::isInstance);
41+
}
42+
3643
@Test
3744
void processAheadOfTimeReturnsBeanRegistrationsAotContributionWithRegistrations() {
3845
BeanRegistrationsAotProcessor processor = new BeanRegistrationsAotProcessor();

0 commit comments

Comments
 (0)