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
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