TestConstructorUtils
in spring-test
contains multiple isAutowirableConstructor(...)
overloads for historical reasons.
However, we ideally only need one variant that does not accept a testClass
, since the test class should actually always be the declaring class of the constructor.
In light of that, we should introduce isAutowirableConstructor(Executable, PropertyProvider)
in TestConstructorUtils
and deprecate all other variants "for removal in 7.1".
Since TestConstructorUtils
is primarily intended for use within the framework, we assume there are few projects out there (if any) that actually rely on these utility methods. Thus, marking those obsolete methods as deprecated in 6.2.13 for removal in 7.1 should hopefully provide sufficient time for potential migration to the new method.
Comment From: github-actions[bot]
Fixed via 82c34f7b512e8bbf73e7dbc58fafeb60229d387c