0

我得到了奇怪的例外:

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

InvalidUseOfMatchersException 预期 0 个匹配器,记录 2 个

IMMUTABLE_TABLE_MOCK 是 Guava 的 ImmutableTable:https ://google.github.io/guava/releases/snapshot/api/docs/com/google/common/collect/ImmutableTable.html

4

0 回答 0