Перейти к содержимому

MockK, the idiomatic mocking framework for Kotlin (Yannick De Turck)

Devoxx France

0:00 / 0:00

MockK, the idiomatic mocking framework for Kotlin (Yannick De Turck)

14 532 просмотра · 7 лет назад
Devoxx France
41,6 тыс. подписчиков
14 532 просмотра · 7 лет назад
If you've developed in Java, you will most likely have used the mocking framework Mockito. While it is a superb framework for mocking in Java, it doesn't really seem to suit Kotlin that well and there are certain limitations or annoyances which you need to get around such as mocking final classes due to the way that Mockito creates its mocks. MockK is a mocking framework specifically for Kotlin developed by Oleksiy Pylypenko. MockK’s main philosophy is offering first-class support for Kotlin features and being able to write idiomatic Kotlin code when using it. This session will serve as an introduction to MockK, showcase its features and how to use it in your unit tests.