Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Mockito nullable
private fun <T> any(): T {
 Mockito.any<T>()
 return uninitialized()
 }
 private fun <T> uninitialized(): T = null as T
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment