MockFactory via ServiceLoader - #1746
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1746 +/- ##
============================================
+ Coverage 79.87% 80.34% +0.46%
- Complexity 4100 4192 +92
============================================
Files 425 431 +6
Lines 12969 13157 +188
Branches 1644 1670 +26
============================================
+ Hits 10359 10571 +212
+ Misses 1998 1972 -26
- Partials 612 614 +2
☔ View full report in Codecov by Sentry. |
|
I chose the name Missing stuff & discussions:
|
leonard84
left a comment
There was a problem hiding this comment.
This looks promising. Here are my first comments. I haven't yet thought about every aspect.
@spockframework/supporter any comments on the usability side?
c4a7139 to
c5cb8cc
Compare
|
The PR #1753 contains the code to implement final class/final method mocking with Mockito. |
c5cb8cc to
821af01
Compare
9b9e96d to
f9a3e66
Compare
4b7ce46 to
9f665ac
Compare
|
@leonard84 I have changed the access to the Usage sample: |
9f665ac to
2231a34
Compare
Vampire
left a comment
There was a problem hiding this comment.
Looks good to me in general.
Just some detail points, and a lot of improvement suggestions. :-)
Vampire
left a comment
There was a problem hiding this comment.
Looks already very good imho.
Just some more details. :-)
|
Mea culpa, tests were broken due to bad review, I fixed them |
|
@Vampire I hope I have nothing forgotten. |
I think from my side |
4a186c8 to
ac2fae6
Compare
leonard84
left a comment
There was a problem hiding this comment.
@AndreasTu all looks good now, I tried to rebase it so that I can directly merge it, but the resulting merge and changes were non-trivial. If you be so kind to resolve them, either by rebase or merge (they will be squash merged in the end).
Also it would be nice, if you could write an entry for the release notes.
Added API IMockMaker to make the mock creation pluggable via the ServiceLoader pattern. The MockMakerRegistry provides access to the different IMockMaker. Added IMockMakerSettings to provide a way to pass additional type-safe arguments to the IMockMaker. This fixes spockframework#1220 Co-authored-by: Leonard Brünings <lord_damokles@gmx.net> Co-authored-by: Björn Kautler <Bjoern@Kautler.net>
0473ec8 to
d28862c
Compare
|
@leonard84 I have rebased the PR. |
|
@AndreasTu thanks for all the work |
Added API IMockMaker to make the mock creation pluggable via the ServiceLoader pattern.
The MockMakerRegistry provides access to the different IMockMaker.
This fixes #1220