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

JMockit to Mockito Recipe - Rewrite JMockit Mocked Variable to Mockito statements #481

Merged

Conversation

zenghu1chen
Copy link
Contributor

What's changed?

Improvements:

  • Added support for JMockit Mocked Variable features(eg. void someMethod(@Mocked Object o))

What's your motivation?

Anything in particular you'd like reviewers to focus on?

Anyone you would like to review specifically?

Have you considered any alternatives or workarounds?

Any additional context

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
Copy link
Contributor

Great addition right away @zenghu1chen ; thanks a lot! I imagine @tinder-dthomson would also be interested in seeing this, given his involvement with the JMockit to Mockito migration recipes so far. I'll do a more thorough review in the days ahead. :)

@timtebeek timtebeek self-requested a review February 18, 2024 09:22
@timtebeek timtebeek mentioned this pull request Feb 18, 2024
timtebeek and others added 3 commits February 18, 2024 10:27
Copy link
Contributor

@timtebeek timtebeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved from my side already; I'll give @tinder-dthomson a day or so to weigh in too just in case, and otherwise merge as is. Thanks a lot @zenghu1chen !

@timtebeek timtebeek added the recipe Recipe request label Feb 19, 2024
Copy link
Contributor

@tinder-dthomson tinder-dthomson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad to see this contribution! Definitely something that the existing recipe did not yet handle, well done!

@timtebeek timtebeek merged commit ccae913 into openrewrite:main Feb 20, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
recipe Recipe request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants