Posts in mocking

Mockk All the Things

Over the last few years Mockk has been gaining ground as the go-to mocking library in KotlinWorld ™. Just recently, it was listed as “adopt” in the [ThoughtWorks technology Radar][1]. Want to know what all the fuss is about?

written in kotlin, mocking, mockk, spy, stub, test Read on →

Using PowerMock + TestNG to Mock a Static Class

 This week I needed to test a class that depended on a method from an static class. I saw we were using [PowerMock][1] and thought to myself: “Well this sounds pretty common, I bet it’s easy to accomplish”. But of course I ran into half a dozen issues before I was able to make it work. Here’s my two cents to make your experience easier than mine.

written in java, mocking, testing Read on →