spring-framework/framework-docs
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
..
modules/ROOT Remove support for Mockito annotations and `MockitoSession` 2024-10-16 09:40:57 +02:00
src Merge branch '6.1.x' 2024-09-11 17:17:38 +02:00
antora-playbook.yml Build documentation branches only for 6.1 and later 2024-08-16 17:04:55 +02:00
antora.yml Merge branch '6.1.x' 2024-09-16 16:59:31 +02:00
framework-docs.gradle Merge branch '6.1.x' 2024-07-26 10:05:06 +02:00
package.json