Created
September 17, 2019 19:06
-
-
Save tzachz/f377c52454a50239fe5a91a834a30f34 to your computer and use it in GitHub Desktop.
Mockito gotcha: matchers sources
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
public static <T> T any() { | |
return (T) anyObject(); | |
} | |
public static <T> T anyObject() { | |
return (T) reportMatcher(Any.ANY).returnNull(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment