spring-framework/framework-docs/modules/ROOT/pages/testing
Simon Baslé 6f79c7e70f Remove support for Mockito annotations and `MockitoSession`
This change remove the support for Mockito annotations, `MockitoSession`
and opening/closing of mocks that was inherited from Boot's `@MockBean`
support, as well as the switch to `MockitoSession` made in 1c893e6.

Attempting to take responsability for things Mockito's own JUnit
Jupiter extension does better is not ideal, and we found it leads to
several corner cases which make `SpringExtension` and `MockitoExtension`
incompatible in the current approach.

Instead, this change refocuses our Mockito bean overriding support
exclusively on aspects specific to the Framework. `MockitoExtension`
will thus be usable in conjunction with `SpringExtension` if one needs
to use `@Captor`/`@InitMocks`/`@Mock`/`@Spy` or other Mockito utilities.

See gh-33318
Closes gh-33692
2024-10-16 09:40:57 +02:00
..
annotations Remove support for Mockito annotations and `MockitoSession` 2024-10-16 09:40:57 +02:00
mockmvc Revise introductory content for MockMvc 2024-09-08 17:59:15 +02:00
testcontext-framework Remove support for Mockito annotations and `MockitoSession` 2024-10-16 09:40:57 +02:00
annotations.adoc
appendix.adoc
integration.adoc
introduction.adoc
mockmvc.adoc Revise introductory content for MockMvc 2024-09-08 17:59:15 +02:00
resources.adoc Restructure content in testing resources section 2024-09-12 13:37:58 +02:00
spring-mvc-test-client.adoc Replace 'e.g.' with 'for example' in documentation and comments 2024-09-26 14:11:17 +02:00
support-jdbc.adoc Fix link in testing/support-jdbc.adoc 2024-10-14 12:07:17 +02:00
testcontext-framework.adoc
unit.adoc
webtestclient.adoc Replace 'e.g.' with 'for example' in documentation and comments 2024-09-26 14:11:17 +02:00