Migrating from Mockito

    Create a mock

    The similarities and differences in creating mocks between Mockito and MockK.

    , doReturn, and more.

    Mockito’s eq, refEq, and same argument matchers.

    `any*`

    The “any” family of matchers: any, , anyByte, anyChar, anyDouble, anyFloat, anyInt, , anyObject, anyShort, and anyString.

    `argThat`

    Porting custom matchers with argThat

    Capturing arguments to check them later.

    MockK makes it easier to mock methods that return .