Skip to content

Commit 1b8f2c4

Browse files
committed
Update Javadoc for @⁠Mockito[Spy]Bean to reflect current semantics
1 parent f7e32a9 commit 1b8f2c4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

spring-test/src/main/java/org/springframework/test/context/bean/override/mockito/MockitoBean.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@
6969
/**
7070
* The name of the bean to register or replace.
7171
* <p>If left unspecified, the bean to override is selected according to
72-
* the annotated field's type.
72+
* the annotated field's type, taking qualifiers into account if necessary.
73+
* See the {@linkplain MockitoBean class-level documentation} for details.
7374
* @return the name of the mocked bean
7475
*/
7576
String name() default "";

spring-test/src/main/java/org/springframework/test/context/bean/override/mockito/MockitoSpyBean.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@
5858

5959
/**
6060
* The name of the bean to spy.
61-
* <p>If left unspecified, the bean to override is selected according to
62-
* the annotated field's type.
61+
* <p>If left unspecified, the bean to spy is selected according to
62+
* the annotated field's type, taking qualifiers into account if necessary.
63+
* See the {@linkplain MockitoSpyBean class-level documentation} for details.
6364
* @return the name of the spied bean
6465
*/
6566
String name() default "";

0 commit comments

Comments
 (0)