Mockito throws the error "The method when(T) in the type Stubber is not applicable for the arguments (void)" for the class Iβm mocking, I canβt understand why.
code in question:
Mockito.when(mockObject.myMethod(Mockito.any(MyExecutionContext.class))).thenReturn(value);
I know that similar questions have been asked, but if someone can explain this decision or point me in the right direction, I would really appreciate it
java mockito mocking
Reginald
source share