Mockito 0匹配预计2记录

时间:2016-08-31 10:10:19

标签: mockito guava jukito

我得到了奇怪的例外:

when(IMMUTABLE_TABLE_MOCK.get(Mockito.any(), Mockito.any())).thenReturn(true);
  

InvalidUseOfMatchersException 0匹配预期,2记录

IMMUTABLE_TABLE_MOCK是番石榴的不可变表:https://google.github.io/guava/releases/snapshot/api/docs/com/google/common/collect/ImmutableTable.html

0 个答案:

没有答案