Skip to content
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

Update to Mockito 2.25.0 and implement InlineMockMaker. #138

Merged
merged 1 commit into from Mar 12, 2019

Conversation

ttanxu
Copy link
Contributor

@ttanxu ttanxu commented Mar 11, 2019

In certain specific, rare cases inline mocking causes memory leaks.
Mockito introduced a new API to explicitly clear mock state in version
2.25.0. To make that work we need to implement the new InlineMockMaker
interface, hence I make this pull request.

This fixes #137.

In certain specific, rare cases inline mocking causes memory leaks.
Mockito introduced a new API to explicitly clear mock state in version
2.25.0. To make that work we need to implement the new InlineMockMaker
interface, hence I make this pull request.

This fixes linkedin#137.
@ttanxu
Copy link
Contributor Author

ttanxu commented Mar 11, 2019

@moltmann can you help review this?

@moltmann
Copy link
Contributor

Assuming that all tests still pass looks great to me

@drewhannay drewhannay merged commit 9cee741 into linkedin:master Mar 12, 2019
@TimvdLippe
Copy link
Contributor

Could this be released? I would like to use the latest version of Dexmaker with Mockito.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement new InlineMockMaker interface in Mockito 2.25.0
4 participants