【发布时间】:2014-08-11 18:22:17
【问题描述】:
我不明白为什么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
【问题讨论】: