Created
November 2, 2018 18:41
-
-
Save oleksiyp/610a1e5d68272b2687df4e5f0309400d to your computer and use it in GitHub Desktop.
"MockK: intentions" object mock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Obj { | |
fun objectFn() = 5 | |
} | |
mockkObject(Obj) | |
every { Obj.objectFn() } returns 6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment