mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
96302a7102
This commit changes how factory method for `@TestBean` usage is discovered. Previously the field name or bean name suffixed with 'TestOverride' was used. It sounds more natural to just use the field name or bean name, leaving cases where a suffix is required to explicitly providing the method name. As part of this change, the exception messages have been revisited as it's less since the method name candidates have the exact same name as the field or bean name. A `()` is added to make it more clear the name is for a method. Closes gh-32940