MockK

MockK is a powerful library. It uses the best of Kotlin to let us define mocks and verification blocks clearly and expressively. It also allows us mock elements typical to Kotlin, like top-level functions and properties, object declarations, or suspending functions. In this workshop, you will learn how to use these capabilities, to use MockK effectively and to improve testing quality in real-life projects.

On the workshop you will

Learn from lecture supported by slides

Solve coding challenges

Complete practical exercises

During the workshop we cover:

  • Mocking in MockK
  • Mocking classes, relaxed mock, return values, functions
  • Mocking by annotations
  • Partial arguments matching - any()
  • Call verification
  • Object mocking
  • Spy
  • Answer
  • Arguments capturing and validation
  • Best practices for mocking and testing

How long does it take?

This workshop lasts 1 day.

Requirements

  • At least basic Kotlin understanding.

Register

Choose this option if you need a workshop for your team or company. The basic price is 2500 EUR for the group for 1 days.

Reserve now

Choose this option if you need a workshop for yourself or for a small group of people. The basic price is 200 EUR per person for the whole workshop.

Reserve now

Our experts offer consultations for both companies and individuals. The price is set individually.

Contact us