我不明白为什么doNothing
不能解决这个问题?有什么想法吗?
@Captor
ArgumentCaptor<GenericClass<someOtherClass>> captor;
...
Mockito.doNothing().when(mockObject.methodToStub(captor.capture()));
错误是:
Exception: when(java.lang.Void) in Stubber cannot be applied to void
https://stackoverflow.com/questions/25249902
复制相似问题