Skip to content

Get rid of PowerMock #1741

@Vovchyk

Description

@Vovchyk

Whenever possible we should avoid mocking static methods, as mostly this is a sign of badly designed code. But if it is really needed (eg. in some legacy code), we may use the Mockito.mockStatic instead (v3.4.+).

Another reason is that PowerMock fails on recent Java versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions