spring-framework/framework-docs
Sam Brannen cd2fbb1ec5 Properly resolve @⁠TestBean factory method within class hierarchy
Prior to this commit, the search algorithm used to locate a @⁠TestBean
factory method within a test class hierarchy incorrectly found factory
methods declared in subclasses or nested test classes "below" the class
in which the @⁠TestBean field was declared. This resulted in "duplicate
bean override" failures for @⁠TestBean overrides which are clearly not
duplicates but rather "overrides of an override".

This commit ensures that @⁠TestBean factory method resolution is
consistent in type hierarchies as well as in enclosing class
hierarchies (for @⁠Nested test classes) by beginning the search for a
factory method in the class which declares the @⁠TestBean field.

Closes gh-34204
2025-01-07 17:20:52 +02:00
..
modules/ROOT Properly resolve @⁠TestBean factory method within class hierarchy 2025-01-07 17:20:52 +02:00
src Suppress Kotlin code sample warnings 2024-10-30 11:54:14 +01:00
antora-playbook.yml Upgrade to antora-ui-spring version 0.4.18 2024-11-15 14:32:01 +01:00
antora.yml Rework links to Spring Boot in reference docs 2024-10-23 16:10:37 +02:00
framework-docs.gradle Upgrade to Gradle 8.12 2024-12-21 16:02:15 +01:00
package.json Improve the discoverability of Java and Kotlin APIs 2024-10-22 08:40:28 +02:00