Browse Source

Update Javadoc for @⁠Mockito[Spy]Bean to reflect current semantics

pull/33684/head
Sam Brannen 1 year ago
parent
commit
1b8f2c46c1
  1. 3
      spring-test/src/main/java/org/springframework/test/context/bean/override/mockito/MockitoBean.java
  2. 5
      spring-test/src/main/java/org/springframework/test/context/bean/override/mockito/MockitoSpyBean.java

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

@ -69,7 +69,8 @@ public @interface MockitoBean {
/** /**
* The name of the bean to register or replace. * The name of the bean to register or replace.
* <p>If left unspecified, the bean to override is selected according to * <p>If left unspecified, the bean to override is selected according to
* the annotated field's type. * the annotated field's type, taking qualifiers into account if necessary.
* See the {@linkplain MockitoBean class-level documentation} for details.
* @return the name of the mocked bean * @return the name of the mocked bean
*/ */
String name() default ""; String name() default "";

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

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

Loading…
Cancel
Save