Created
July 30, 2019 15:03
-
-
Save christianb/f6cfefc693229938f1b09c6a769040ce to your computer and use it in GitHub Desktop.
Verify the argument passed to a function are correct using Mockk Matchers
This file contains hidden or 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
class foo { | |
fun bar(list: List<Any>) | |
} | |
// verifies the list is empty when passed to bar() | |
verify { foo.bar(match { it.isEmpty() }) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment