Add test to validate AOT infrastructure registration
See gh-28561
This commit is contained in:
parent
176ea5e9a7
commit
3aefa88d3c
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue