Hi, does anyone have a working example of a test u...
# spek
d
Hi, does anyone have a working example of a test using Mockk’s
mockkStatic
? I can’t make it work with Spek. In JUnit
mockkStatic
works fine.
r
Hey! Can you share some code, I can take a look later :)
Side note, having to mock a static method seems like a code smell to me :P
d
Thanks. I will prepare simple test project.
I have to integrate with a library that has API based on static methods (below are thread locals).
r
Hey @dnowak! Do you still need any help? 🙂
d
Hi @raniejade, I tried to recreate the issue in sample project. Everything works fine… I will try again with my original project and let you know about the results.
👍 1