Mockito "The method when(T) in the type Stubber is not applicable for the arguments (void)"为我正在嘲笑的课程抛出错误,无法弄清楚原因.
有问题的代码是:
Mockito.when(mockObject.myMethod(Mockito.any(MyExecutionContext.class))).thenReturn(value);
Run Code Online (Sandbox Code Playgroud)
我知道有人问过类似的问题,但是如果有人可以为此解释一下解决方案或者指出我正确的方向,我将非常感激