Thursday, 3 October 2019

Stubbed Mock

Stubbed Mock is an open-source library written in Kotlin for JVM that allows users to stub data models in a Mockito-like fashion during unit tests.

Stubbed Mock supports many language features like plain Java and Kotlin classes, constructor and field injection of stubbed values, lazy, Kotlin's backing field properties and more.

Important to note: This library isn't meant to replace Mockito and doesn't mock class (or function) behavior. Its primary use is for data model classes.



from The Android Arsenal

No comments:

Post a Comment