Migrating from Mockito #
Learn how to use MockK by seeing equivalents to functions in Mockito.
- Create a mock
- The similarities and differences in creating mocks between Mockito and MockK.
- `when` and `do*`
doReturn, and more.
- The “any” family of matchers:
verifythat a method was called.
- Porting custom matchers with
- Capturing arguments to check them later.
- `void` methods
- MockK makes it easier to mock methods that return