-
Notifications
You must be signed in to change notification settings - Fork 79
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 Migration Recipe - Rewrite Expectations Block #415
JMockit to Mockito Migration Recipe - Rewrite Expectations Block #415
Conversation
I noticed the recipes were located in the |
Hi Devin, Thanks for your contribution! |
Thank you so much! Do you mind explaining your changes a bit? From what I saw, your changes can be broken into three categories:
I have the following specific questions:
|
Adding those classpaths is to get type attributions, and we just need to add necessary minimum set of classpaths. |
src/test/java/org/openrewrite/java/testing/jmockit/JMockitToMockitoTest.java
Show resolved
Hide resolved
src/test/java/org/openrewrite/java/testing/jmockit/JMockitToMockitoTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for your contribution again!
What's changed?
ExpectationsToMockito
to handle converting a JMockitExpectations
block to a Mockitowhen
statement. (WIP)org.openrewrite.java.testing.jmockit.JMockitToMockito
, to eventually list all the recipes necessary for the migration.JMockitToMockitoTest
for testing the declarative recipe.What's your motivation?
Work towards a full JMockit to Mockito migration recipe. This migration is quite involved for large codebases, and JMockit presents challenges for migrating to Java 17.
Checklist
./gradlew licenseFormat