Skip to content

Provide a new API for verifying static mock and deprecate old for Mockito #832

@thekingn0thing

Description

@thekingn0thing

The current API for verifying static is inconsistent with Mockito Verify API and cannot be implemented with using only Mockito public API (mockito/mockito#1110).

verifyStatic();
ClassWithStatic.callStatic();

verifyStatic();
SecondClassWithStatic.callStatic();

As result, it should be replaced with a new one

verifyStatic(ClassWithStatic.class);
ClassWithStatic.callStatic();

The current API have to marked as deprecated in versions 1.7.x and a new one should be provided.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions