New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make MockUtil.getMockMaker() public Mockito API #3129
Merged
Merged
Conversation
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
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3129 +/- ##
============================================
+ Coverage 85.48% 85.51% +0.02%
- Complexity 2892 2894 +2
============================================
Files 329 330 +1
Lines 8826 8828 +2
Branches 1095 1095
============================================
+ Hits 7545 7549 +4
+ Misses 994 992 -2
Partials 287 287
☔ View full report in Codecov by Sentry. |
AndreasTu
added a commit
to AndreasTu/spock
that referenced
this pull request
Oct 5, 2023
TimvdLippe
requested changes
Oct 5, 2023
src/test/java/org/mockito/internal/configuration/plugins/DefaultMockitoPluginsTest.java
Show resolved
Hide resolved
The MockitoPlugins interface now provides access to the getMockMaker() method. Fixes mockito#3128
AndreasTu
added a commit
to AndreasTu/spock
that referenced
this pull request
Oct 6, 2023
MockitoInlineMockMaker supports to mock static methods of Java classes with the new Spec API: `MockStatic()` `StubStatic()` `SpyStatic()` This also supports Java callers of the static methods. Added MockUtil.isStaticMock() Added code to use public Mockito API introduced with mockito/mockito#3129
TimvdLippe
approved these changes
Oct 6, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@TimvdLippe thanks for the help and the merge! |
AndreasTu
added a commit
to AndreasTu/spock
that referenced
this pull request
Oct 9, 2023
MockitoInlineMockMaker supports to mock static methods of Java classes with the new Spec API: `MockStatic()` `StubStatic()` `SpyStatic()` This also supports Java callers of the static methods. Added MockUtil.isStaticMock() Added code to use public Mockito API introduced with mockito/mockito#3129
AndreasTu
added a commit
to AndreasTu/spock
that referenced
this pull request
Oct 11, 2023
MockitoInlineMockMaker supports to mock static methods of Java classes with the new Spec API: `MockStatic()` `StubStatic()` `SpyStatic()` This also supports Java callers of the static methods. Added MockUtil.isStaticMock() Added code to use public Mockito API introduced with mockito/mockito#3129
AndreasTu
added a commit
to AndreasTu/spock
that referenced
this pull request
Oct 11, 2023
MockitoInlineMockMaker supports to mock static methods of Java classes with the new Spec API: `MockStatic()` `StubStatic()` `SpyStatic()` This also supports Java callers of the static methods. Added MockUtil.isStaticMock() Added code to use public Mockito API introduced with mockito/mockito#3129
AndreasTu
added a commit
to AndreasTu/spock
that referenced
this pull request
Oct 11, 2023
MockitoInlineMockMaker supports to mock static methods of Java classes with the new Spec API: `MockStatic()` `StubStatic()` `SpyStatic()` This also supports Java callers of the static methods. Added MockUtil.isStaticMock() Added code to use public Mockito API introduced with mockito/mockito#3129
AndreasTu
added a commit
to AndreasTu/spock
that referenced
this pull request
Oct 12, 2023
MockitoMockMaker supports to mock static methods of Java classes with the new Spec API: `MockStatic()` `StubStatic()` `SpyStatic()` This also supports Java callers of the static methods. Added MockUtil.isStaticMock() Added code to use public Mockito API introduced with mockito/mockito#3129 Co-authored-by: Leonard Brünings <lord_damokles@gmx.net>
AndreasTu
added a commit
to AndreasTu/spock
that referenced
this pull request
Oct 13, 2023
MockitoMockMaker supports to mock static methods of Java classes with the new Spec API: `MockStatic()` `StubStatic()` `SpyStatic()` This also supports Java callers of the static methods. Added MockUtil.isStaticMock() Added code to use public Mockito API introduced with mockito/mockito#3129 Co-authored-by: Leonard Brünings <lord_damokles@gmx.net>
AndreasTu
added a commit
to AndreasTu/spock
that referenced
this pull request
Oct 22, 2023
MockitoMockMaker supports to mock static methods of Java classes with the new Spec API: `MockStatic()` `StubStatic()` `SpyStatic()` This also supports Java callers of the static methods. Added MockUtil.isStaticMock() Added code to use public Mockito API introduced with mockito/mockito#3129 Co-authored-by: Leonard Brünings <lord_damokles@gmx.net>
AndreasTu
added a commit
to AndreasTu/spock
that referenced
this pull request
Oct 25, 2023
MockitoMockMaker supports to mock static methods of Java classes with the new Spec API: `MockStatic()` `StubStatic()` `SpyStatic()` This also supports Java callers of the static methods. Added MockUtil.isStaticMock() Added code to use public Mockito API introduced with mockito/mockito#3129 Moved IMockMakerSettings and MockMakerId to package spock.mock. Co-authored-by: Leonard Brünings <lord_damokles@gmx.net>
AndreasTu
added a commit
to AndreasTu/spock
that referenced
this pull request
Nov 6, 2023
MockitoMockMaker supports to mock static methods of Java classes with the new Spec API: `MockStatic()` `StubStatic()` `SpyStatic()` This also supports Java callers of the static methods. Added MockUtil.isStaticMock() Added code to use public Mockito API introduced with mockito/mockito#3129 Moved IMockMakerSettings and MockMakerId to package spock.mock. Co-authored-by: Leonard Brünings <lord_damokles@gmx.net>
AndreasTu
added a commit
to AndreasTu/spock
that referenced
this pull request
Nov 12, 2023
MockitoMockMaker supports to mock static methods of Java classes with the new Spec API: `MockStatic()` `StubStatic()` `SpyStatic()` This also supports Java callers of the static methods. Added MockUtil.isStaticMock() Added code to use public Mockito API introduced with mockito/mockito#3129 Moved IMockMakerSettings and MockMakerId to package spock.mock. Co-authored-by: Leonard Brünings <lord_damokles@gmx.net>
AndreasTu
added a commit
to AndreasTu/spock
that referenced
this pull request
Nov 12, 2023
MockitoMockMaker supports to mock static methods of Java classes with the new Spec API: `MockStatic()` `StubStatic()` `SpyStatic()` This also supports Java callers of the static methods. Added MockUtil.isStaticMock() Added code to use public Mockito API introduced with mockito/mockito#3129 Moved IMockMakerSettings and MockMakerId to package spock.mock. Co-authored-by: Leonard Brünings <lord_damokles@gmx.net>
AndreasTu
added a commit
to AndreasTu/spock
that referenced
this pull request
Dec 17, 2023
MockitoMockMaker supports to mock static methods of Java classes with the new Spec API: `MockStatic()` `StubStatic()` `SpyStatic()` This also supports Java callers of the static methods. Added MockUtil.isStaticMock() Added code to use public Mockito API introduced with mockito/mockito#3129 Moved IMockMakerSettings and MockMakerId to package spock.mock. Co-authored-by: Leonard Brünings <lord_damokles@gmx.net>
AndreasTu
added a commit
to AndreasTu/spock
that referenced
this pull request
Jan 23, 2024
MockitoMockMaker supports to mock static methods of Java classes with the new Spec API: `MockStatic()` `StubStatic()` `SpyStatic()` This also supports Java callers of the static methods. Added MockUtil.isStaticMock() Added code to use public Mockito API introduced with mockito/mockito#3129 Moved IMockMakerSettings and MockMakerId to package spock.mock. Co-authored-by: Leonard Brünings <lord_damokles@gmx.net>
AndreasTu
added a commit
to AndreasTu/spock
that referenced
this pull request
Jan 24, 2024
MockitoMockMaker supports to mock static methods of Java classes with the new Spec API: `MockStatic()` `StubStatic()` `SpyStatic()` This also supports Java callers of the static methods. Added MockUtil.isStaticMock() Added code to use public Mockito API introduced with mockito/mockito#3129 Co-authored-by: Leonard Brünings <lord_damokles@gmx.net>
AndreasTu
added a commit
to AndreasTu/spock
that referenced
this pull request
Feb 8, 2024
MockitoMockMaker supports to mock static methods of Java classes with the new Spec API: `MockStatic()` `StubStatic()` `SpyStatic()` This also supports Java callers of the static methods. Added MockUtil.isStaticMock() Added code to use public Mockito API introduced with mockito/mockito#3129 Co-authored-by: Leonard Brünings <lord_damokles@gmx.net> Co-authored-by: Marc Philipp <marc@gradle.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The MockitoPlugins interface now provides access to the
MockUtil.getMockMaker()
method.Fixes #3128
Checklist
including project members to get a better picture of the change
commit is meaningful and help the people that will explore a change in 2 years
Fixes #<issue number>
in the description if relevantFixes #<issue number>
if relevant