Mockito 0 matchers expected 2 recorded

286 views Asked by At

I am getting weird exception for:

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

InvalidUseOfMatchersException 0 matchers expected, 2 recorded

IMMUTABLE_TABLE_MOCK is Guava's ImmutableTable : https://google.github.io/guava/releases/snapshot/api/docs/com/google/common/collect/ImmutableTable.html

0

There are 0 answers