Skip to content

Commit

Permalink
Add test to validate AOT infrastructure registration
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll committed Jun 3, 2022
1 parent 176ea5e commit 3aefa88
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -33,6 +33,13 @@
*/
class BeanRegistrationsAotProcessorTests {

@Test
void beanRegistrationsAotProcessorIsRegistered() {
assertThat(new AotFactoriesLoader(new DefaultListableBeanFactory())
.load(BeanFactoryInitializationAotProcessor.class))
.anyMatch(BeanRegistrationsAotProcessor.class::isInstance);
}

@Test
void processAheadOfTimeReturnsBeanRegistrationsAotContributionWithRegistrations() {
BeanRegistrationsAotProcessor processor = new BeanRegistrationsAotProcessor();
Expand Down

0 comments on commit 3aefa88

Please sign in to comment.