0

I want to mock a variable with mockito3 and I have mockito-inline enabled but when I run the test it calls the real get accessor and it ignores my mock.

Mockito.`when`(mock.myVal).thenReturn(false)

and I got

java.lang.NullPointerException

0 Answers0