-
Notifications
You must be signed in to change notification settings - Fork 78
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
JUnit4to5Migration uses old mockito-junit-jupiter version #541
Comments
Hi! Thanks for the report; looks like we indeed bump to 3.x in two locations: Once as part of rewrite-testing-frameworks/src/main/resources/META-INF/rewrite/junit5.yml Lines 130 to 136 in fd0eb2d
And once more via rewrite-testing-frameworks/src/main/resources/META-INF/rewrite/mockito.yml Lines 136 to 141 in fd0eb2d
If you were to execute either of these recipes I think you should be upgraded to 4.x or 5.x
As per Mockito's 5.x release notes it seems that 5.x requires Java 11, whereas 4.x still works with Java 8. As our In any case I believe we could fix all the above using only declarative Yaml recipes and preconditions. Would you want to help out making that a reality? |
There is at least one more location in the recipeDependencies within
|
unfortunately i am so busy with updating many projects, where i am very grateful for rewrite. i try to open up feedback & issues as best as possible. i have helped myself by pulling the version of mockito-junit-jupiter through a parent pom. |
All good; as per the above I've for now changed our JUnit 5 upgrade to pull in Mockito 4.x via f1fda26 |
The added dependency from mockito-junit-jupiter could be upgraded to a newer one.
How are you running OpenRewrite?
I am using the Maven plugin, and my project is a single module project.
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: