From 72562e0fd4f4a8b721455595d6abed5d543352b0 Mon Sep 17 00:00:00 2001 From: cdalexndr Date: Fri, 19 Feb 2021 17:59:31 +0200 Subject: [PATCH] Improve documentaion of Mockito test execution listeners See gh-25375 --- .../src/docs/asciidoc/spring-boot-features.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc index da950324e5..4db3eba5c2 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc @@ -6589,11 +6589,11 @@ Mock beans are automatically reset after each test method. [NOTE] ==== If your test uses one of Spring Boot's test annotations (such as `@SpringBootTest`), this feature is automatically enabled. -To use this feature with a different arrangement, a listener must be explicitly added, as shown in the following example: +To use this feature with a different arrangement, listeners must be explicitly added, as shown in the following example: [source,java,indent=0] ---- - @TestExecutionListeners(MockitoTestExecutionListener.class) + @TestExecutionListeners({MockitoTestExecutionListener.class, ResetMocksTestExecutionListener.class}) ---- ====