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

Added handling of org.mockito.Mockito.eq(..) when simplifying mockito matchers #635

Merged
merged 4 commits into from
Nov 5, 2024

Conversation

adambir
Copy link
Contributor

@adambir adambir commented Nov 5, 2024

What's changed?

Added a test for issue #634
Added handling of org.mockito.Mockito.eq(..) when simplifying mockito matchers

What's your motivation?

We are using import static org.mockito.Mockito.*; at my company, and in its current state this recipe does not support it.

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

@timtebeek timtebeek self-requested a review November 5, 2024 16:16
@timtebeek timtebeek added bug Something isn't working mockito labels Nov 5, 2024
@timtebeek
Copy link
Contributor

Thanks for the initiative here @adambir ; looks like this was missed earlier indeed; great addition.

@timtebeek timtebeek merged commit 671addc into openrewrite:main Nov 5, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mockito
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

SimplifyMockitoVerifyWhenGiven does not replace org.mockito.Mockito(..)
2 participants