Migrating from Mockito
The similarities and differences in creating mocks between Mockito and MockK.
, doReturn
, and more.
Mockito’s eq
, refEq
, and same
argument matchers.
The “any” family of matchers: any
, , anyByte
, anyChar
, anyDouble
, anyFloat
, anyInt
, , anyObject
, anyShort
, and anyString
.
Porting custom matchers with argThat
Capturing arguments to check them later.
MockK makes it easier to mock methods that return .