Skip to content

Commit 7fb6a2e

Browse files
committed
Polish Javadoc for Bean Override TestExecutionListeners
1 parent e2d981e commit 7fb6a2e

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
*
3030
* @author Simon Baslé
3131
* @author Sam Brannen
32+
* @author Phillip Webb
33+
* @author Andy Wilkinson
34+
* @author Moritz Halbritter
3235
* @since 6.2
3336
*/
3437
public class BeanOverrideTestExecutionListener extends AbstractTestExecutionListener {

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

+12-10
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,24 @@
2525
import org.springframework.test.context.support.DependencyInjectionTestExecutionListener;
2626

2727
/**
28-
* {@code TestExecutionListener} that enables {@link MockitoBean @MockitoBean}
29-
* and {@link MockitoSpyBean @MockitoSpyBean} support. Also triggers setup of a
30-
* {@link MockitoSession} for each test class that uses these annotations (or any
31-
* annotations in this package).
28+
* {@code TestExecutionListener} that manages a {@link MockitoSession} for each
29+
* test class that uses {@link MockitoBean @MockitoBean},
30+
* {@link MockitoSpyBean @MockitoSpyBean},
31+
* {@link MockitoBeanSettings @MockitoBeanSettings}, or any annotations from the
32+
* {@code org.mockito} package.
3233
*
3334
* <p>The {@link MockitoSession#setStrictness(Strictness) strictness} of the
3435
* session defaults to {@link Strictness#STRICT_STUBS}. Use
35-
* {@link MockitoBeanSettings @MockitoBeanSettings} to specify a different strictness.
36+
* {@code @MockitoBeanSettings} to specify a different strictness.
3637
*
37-
* <p>The automatic reset support for {@code @MockitoBean} and {@code @MockitoSpyBean}
38-
* is handled by the {@link MockitoResetTestExecutionListener}.
38+
* <p>Dependency injection for {@code @MockitoBean} and {@code @MockitoSpyBean}
39+
* fields is handled by the
40+
* {@link org.springframework.test.context.bean.override.BeanOverrideTestExecutionListener
41+
* BeanOverrideTestExecutionListener}, and automatic reset support for
42+
* {@code @MockitoBean} and {@code @MockitoSpyBean} is handled by the
43+
* {@link MockitoResetTestExecutionListener}.
3944
*
4045
* @author Simon Baslé
41-
* @author Phillip Webb
42-
* @author Andy Wilkinson
43-
* @author Moritz Halbritter
4446
* @author Sam Brannen
4547
* @since 6.2
4648
* @see MockitoResetTestExecutionListener

0 commit comments

Comments
 (0)