Fixes issue 524 : Mockito 1.10.9+ incompatibility, by repackaging CGLIB MockMaker #15
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.
Fixes issue 524
As Mockito changed the structure of this internals : renaming, package changes, visibility change, interface change. PowerMock doesn't have anymore the opportunity to hack his way by extension.
So he best way currently is to repackage some of the mockito internals (the CGLIB related part), and change visibility where relevant. However it means that PowerMock won't use current Mockito
MockMaker
. As Mockito is progressively moving away from CGLIB, there will for sure be another implementation. Let's forget bug fixes on this front too.A better solution has to be engineered. PR are welcome on https://github.com/mockito/mockito/