mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
4d961fa472
Prior to this commit, a @TestBean factory method was found in the directly enclosing class for a @Nested test class; however, such a factory method was not found in the enclosing class of the enclosing class, etc. This commit updates the search algorithm for @TestBean factory methods so that it recursively searches the enclosing class hierarchy for @Nested test classes. Closes gh-32951