Niek Haarman

Results 39 comments of Niek Haarman

Ugh. Guess we'll need to check if [mockk](https://mockk.io/) is stable enough?

Mockito-kotlin 1 used to do a lot of reflection-based instantiation to be able to deal with this, which made it rely on the reflect library. Using different versions of the...

What kind of performance hit is this?

Let's reopen this to keep tracking the issue.

> @nhaarman The slow performance wasn't from inline-mock-maker. It was four tests that were hanging do to MockWebserver. After a refactor I can now execute 600+ tests in ~7 seconds....

This is something that breaks compilation of the library itself as well when `-XXLanguage:+NewInference` is enabled. Since there isn't any (at least I haven't found any) official documentation or discussion...

The thing here is that you're *never* actually invoking `underTest.doStuff(String)`. The Kotlin compiler doesn't generate actual method overloads, but rather a static function with a bunch of helper variables: ```...

Would Mockito's [Strictness](https://static.javadoc.io/org.mockito/mockito-core/2.22.0/org/mockito/quality/Strictness.html) API help here?