spring-framework/framework-docs/modules/ROOT
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
..
assets/images
examples Use include-code Macro 2023-05-04 15:35:05 +01:00
pages Properly resolve @⁠TestBean factory method within class hierarchy 2025-01-07 17:20:52 +02:00
partials/web Fix typo in reference documentation 2024-11-12 10:04:06 +01:00
nav.adoc Document support for varargs invocations in SpEL 2024-11-18 11:54:22 +01:00