forked from spring-projects/spring-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 spring-projectsgh-33318 Closes spring-projectsgh-33692
- Loading branch information
1 parent
c261ca3
commit 6f79c7e
Showing
14 changed files
with
5 additions
and
432 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 0 additions & 47 deletions
47
...main/java/org/springframework/test/context/bean/override/mockito/MockitoBeanSettings.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 0 additions & 102 deletions
102
.../org/springframework/test/context/bean/override/mockito/MockitoTestExecutionListener.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 0 additions & 63 deletions
63
...ework/test/context/bean/override/mockito/MockitoBeanSettingsInheritedStrictnessTests.java
This file was deleted.
Oops, something went wrong.
56 changes: 0 additions & 56 deletions
56
...mework/test/context/bean/override/mockito/MockitoBeanSettingsLenientIntegrationTests.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.