This commit harmonizes how a candidate bean definition is determined for overriding using `@TestBean`, `@MockitoBean`, and `@MockitoSpyBean`. Previously, a qualifier was necessary even if the name of the annotated field matches the name of a candidate. After this commit, such candidate will be picked up transparently, the same it is done for regular autowiring. This commit also reviews the documentation of the feature as considering the field means that its name is taken into account to compute a cache key if by-type lookup is requested. Closes gh-32939 |
||
|---|---|---|
| .. | ||
| modules/ROOT | ||
| src | ||
| antora-playbook.yml | ||
| antora.yml | ||
| framework-docs.gradle | ||
| package.json | ||