rewrite-testing-frameworks
rewrite-testing-frameworks copied to clipboard
PowerMock MemberModifier support
What problem are you trying to solve?
MemberModifier method cannot be recognized and implemented in mockito.
Describe the solution you'd like
https://docs.openrewrite.org/recipes/java/testing/mockito/replacepowermockito MemberModifier.field(WebLicenseManager.class, "coreLics").set(webLicenseManager, coreLics);
Have you considered any alternatives or workarounds?
Private method → package-level visibility + @VisibleForTesting
Additional context
Are you interested in contributing this feature to OpenRewrite?
Thanks for the report! I've added this to the backlog for now; you're welcome to help pick this up if that helps you there!