https://kotlinlang.org logo
#feed
Title
# feed
o

oleksiyp

08/04/2018, 8:01 AM
MockK 1.8.6 now supports verification timeouts http://mockk.io/#verification-timeout #mockk
👏 11
a

alexfacciorusso

08/07/2018, 1:06 PM
Stupid question (I don't know if it's already written in the doc or not, don't blame me). Why the k after the annotations/methods? Is there a reason why the library doesn't use the same notation as Mockito? In that way moving through the libraries would be way easier and the user (developer) would feel more comfortable using this library coming from Mockito
o

oleksiyp

08/07/2018, 1:15 PM
You anyway will need to change package and always can do typalias for that. Actaully you can do clever way and remove mockito dependency, create typealias, and inline it
Rationale is that I didnt like to mess in annotanion names, sometimes such wrongly imported annotation can result in hours of debugging
k

Krs

08/08/2018, 7:00 AM
Nice! Didn't know about mocking framework for Kotlin, I used to use some library to overcome problems with any() and other stuff but will take a look 😄 Thanks!
4 Views