rewrite-testing-frameworks icon indicating copy to clipboard operation
rewrite-testing-frameworks copied to clipboard

PowerMock MemberModifier support

Open ChenyuWang98 opened this issue 6 months ago • 1 comments

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?

ChenyuWang98 avatar Aug 06 '25 03:08 ChenyuWang98

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!

timtebeek avatar Aug 06 '25 20:08 timtebeek