Browse Source
The internal buildMergedContextConfiguration() method in AbstractTestContextBootstrapper originally resolved the ApplicationContextInitializer set only once. However, the changes made in commit6.2.x2244461778introduced a regression resulting in the initializers being resolved twice: once for validation and once for actually building the merged context configuration. In addition, the resolution for validation does not honor the inheritInitializers flag in ContextConfigurationAttributes. To address these issues, buildMergedContextConfiguration() once again resolves the context initializers once via ApplicationContextInitializerUtils.resolveInitializerClasses(). See gh-18528 Closes gh-36430 (cherry picked from commit463138acbc)
1 changed files with 4 additions and 5 deletions
Loading…
Reference in new issue