Add test to validate AOT infrastructure registration
See gh-28561
This commit is contained in:
@@ -33,6 +33,13 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*/
|
||||
class BeanRegistrationsAotProcessorTests {
|
||||
|
||||
@Test
|
||||
void beanRegistrationsAotProcessorIsRegistered() {
|
||||
assertThat(new AotFactoriesLoader(new DefaultListableBeanFactory())
|
||||
.load(BeanFactoryInitializationAotProcessor.class))
|
||||
.anyMatch(BeanRegistrationsAotProcessor.class::isInstance);
|
||||
}
|
||||
|
||||
@Test
|
||||
void processAheadOfTimeReturnsBeanRegistrationsAotContributionWithRegistrations() {
|
||||
BeanRegistrationsAotProcessor processor = new BeanRegistrationsAotProcessor();
|
||||
|
||||
Reference in New Issue
Block a user