Commit 03900e6
committed
Add Spring factories test for initializers
Add a unit test that verifies ApplicationContextInitializer implementations are discovered via Spring factories. The test uses SpringFactoriesLoaderUtils.loadFactoryClasses to load ApplicationContextInitializer classes, asserts there are four entries, checks they are assignable from ConfigurableApplicationContextInitializer, and verifies the specific initializer classes (AutoRegistrationBeanInitializer, EventPublishingBeanInitializer, ListenableAutowireCandidateResolverInitializer, ListenableConfigurableEnvironmentInitializer) are present. Necessary imports and a static import were added to the test file.1 parent b5f9071 commit 03900e6
1 file changed
Lines changed: 20 additions & 0 deletions
File tree
- microsphere-spring-context/src/test/java/io/microsphere/spring/context
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
28 | 36 | | |
29 | 37 | | |
30 | 38 | | |
| |||
80 | 88 | | |
81 | 89 | | |
82 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
83 | 103 | | |
84 | 104 | | |
85 | 105 | | |
| |||
0 commit comments