Skip to content

PowerMock MemberModifier support #784

@ChenyuWang98

Description

@ChenyuWang98

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions