google / google/error-prone

False positive for `CannotMockFinalClass` and `CannotMockFinalMethod`

Open
#3,362 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
7.2k
Forks
820
Avg merge
5h 9m
Merged PRs (30d)
50

Description

Mockito 2 and later can mock final classes and final methods. Take a look at [the wiki](https://github.com/mockito/mockito/wiki/What%27s-new-in-Mockito-2#unmockable).

Can `CannotMockFinalClass` and `CannotMockFinalMethod` checks be a bit smarter and validate if `mock-maker-inline` `MockMaker` is used?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.