Skip to content

Commit 72562e0

Browse files
cdalexndrwilkinsona
authored andcommitted
Improve documentaion of Mockito test execution listeners
See gh-25375
1 parent 8b5c345 commit 72562e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6589,11 +6589,11 @@ Mock beans are automatically reset after each test method.
65896589
[NOTE]
65906590
====
65916591
If your test uses one of Spring Boot's test annotations (such as `@SpringBootTest`), this feature is automatically enabled.
6592-
To use this feature with a different arrangement, a listener must be explicitly added, as shown in the following example:
6592+
To use this feature with a different arrangement, listeners must be explicitly added, as shown in the following example:
65936593
65946594
[source,java,indent=0]
65956595
----
6596-
@TestExecutionListeners(MockitoTestExecutionListener.class)
6596+
@TestExecutionListeners({MockitoTestExecutionListener.class, ResetMocksTestExecutionListener.class})
65976597
----
65986598
65996599
====

0 commit comments

Comments
 (0)