False positive for DirectInvocationOnMock
Open
- Dominant language
- Java
- Stars
- 7.2k
- Forks
- 820
- Avg merge
- 5h 9m
- Merged PRs (30d)
- 50
Description
Code like this should be allowed for `DirectInvocationOnMock`:
```java
import static org.mockito.Mockito.mock;
import static org.mockito.BDDMockito.given;
@Test
void test() {
Caller caller = mock(Caller.class);
given(caller.call()).willReturn(1);
}
```
Contributor guide
Assessment
This issue has not been assessed yet.