Skip to content

org.openrewrite.java.testing.mockito.MockitoBestPractices Unnecessary operations bug Something isn't working #1102

Description

@ChenyuWang98

when(Static.method()).thenAnswer(...) has been changed to mockStatic.when(() -> Static.method()).thenReturn(...).
thenAnser was changed to thenReturn.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions