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

Migrate away from ancient Mockito #25

Open
basil opened this issue Aug 18, 2023 · 3 comments
Open

Migrate away from ancient Mockito #25

basil opened this issue Aug 18, 2023 · 3 comments
Labels
recipe Requests for new automated code changes

Comments

@basil
Copy link
Contributor

basil commented Aug 18, 2023

In Mockito 2 org.mockito.Matchers was deprecated in favor of org.mockito.ArgumentMatchers, and in Mockito 3 org.mockito.Matchers was deleted. Old plugins will still be relying on org.mockito.Matchers and thus will need to be updated to use org.mockito.ArgumentMatchers instead.

@basil
Copy link
Contributor Author

basil commented Aug 18, 2023

Another breaking Mockito change was org.mockito.Mockito.verifyZeroInteractions to mockito.Mockito.verifyNoMoreInteractions.

@basil
Copy link
Contributor Author

basil commented Aug 18, 2023

Or maybe this was Mockito 3 to Mockito 4? I can't quite recall.

@basil basil changed the title Migrate away from Mockito 2 Migrate away from ancient Mockito Aug 18, 2023
@sghill
Copy link
Collaborator

sghill commented Aug 18, 2023

Good news for this one, we should be able to leverage the already-existing Mockito migration recipes.

@timtebeek timtebeek moved this to Recipes Wanted in OpenRewrite Aug 18, 2023
@timtebeek timtebeek added the recipe Requests for new automated code changes label Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
recipe Requests for new automated code changes
Projects
Status: Recipes Wanted
Development

No branches or pull requests

3 participants