spring-framework/framework-docs/modules/ROOT/pages
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
..
core Polish contribution 2024-12-27 09:31:34 +01:00
data-access Remove support for Resin Servlet container 2024-10-23 10:10:29 +02:00
integration Change the description for the uri client request observation 2025-01-07 09:02:25 +01:00
languages Polishing 2024-12-21 15:31:01 +01:00
testing Properly resolve @⁠TestBean factory method within class hierarchy 2025-01-07 17:20:52 +02:00
web Fix broken links in the web reference documentation 2024-12-23 11:14:40 +01:00
appendix.adoc Restore traditional AspectJ behavior through "spring.aop.ajc.ignore=true" 2024-10-29 23:01:16 +01:00
core.adoc Remove includes 2023-05-04 15:35:05 +01:00
data-access.adoc Enable Section Summary TOC for small pages 2023-05-04 15:35:05 +01:00
index.adoc Polishing 2024-06-07 13:45:09 +02:00
integration.adoc Enable Section Summary TOC for small pages 2023-05-04 15:35:05 +01:00
languages.adoc Enable Section Summary TOC for small pages 2023-05-04 15:35:05 +01:00
overview.adoc Replace 'e.g.' with 'for example' in documentation and comments 2024-09-26 14:11:17 +02:00
page-layout.adoc Remove unnecessary asciidoc attributes 2023-05-04 15:35:05 +01:00
rsocket.adoc Replace 'e.g.' with 'for example' in documentation and comments 2024-09-26 14:11:17 +02:00
testing.adoc Enable Section Summary TOC for small pages 2023-05-04 15:35:05 +01:00
web-reactive.adoc Extract recurring asciidoc links to attributes, cleanup old doc files 2023-11-21 15:59:24 +01:00
web.adoc Fix additional WebFlux-related links 2023-11-20 16:22:35 +01:00