Stop using SpringFactoriesLoader.loadFactoryNames in the TestContext framework #28666
Labels
in: test
Issues in the test module
theme: aot
An issue related to Ahead-of-time processing
type: task
A general task
Milestone
AbstractTestContextBootstrapper.getDefaultTestExecutionListenerClassNames()
is currently the only remaining use ofSpringFactoriesLoader.loadFactoryNames()
in the core Spring Framework.Since
SpringFactoriesLoader.loadFactoryNames()
will be deprecated in #27954, we should stop using it and remove thegetDefaultTestExecutionListenerClassNames()
method fromAbstractTestContextBootstrapper
.We should likely remove
getDefaultTestExecutionListenerClasses()
as well and refactorgetTestExecutionListeners()
to make use of the newFailureHandler
support inSpringFactoriesLoader
.The text was updated successfully, but these errors were encountered: