Skip to content

Instantly share code, notes, and snippets.

@truongngoclinh
Created May 1, 2019 15:42
Show Gist options
  • Save truongngoclinh/c34f43f2bd946470b43e3621e6dd0b60 to your computer and use it in GitHub Desktop.
Save truongngoclinh/c34f43f2bd946470b43e3621e6dd0b60 to your computer and use it in GitHub Desktop.
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