ArgumentMatcher
Match arguments passed in a method of your mock
Basic Rule to match any statement with Mockito is to correctly match its parameters. If any of the parameter did not match then instruction will not be mocked.
Similarly we have Mockito.any()
, Mockito.anyLong()
, Mockito.anyString()
, Mockito.anyBoolean()
, Mockito.anyByte()
, Mockito.anyChar()
, Mockito.anyFloat()
, Mockito.anyDouble()
, Mockito.anyShort()
, Mockito.anyList()
, Mockito.anySet()
and Mockito.anyMap()
Last updated