Created
October 25, 2012 10:12
-
-
Save aphexmunky/3951809 to your computer and use it in GitHub Desktop.
Mockito verify void interactions
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
doAnswer(new Answer<Object>() { | |
public Object answer(InvocationOnMock invocation) { | |
Object[] args = invocation.getArguments(); | |
return new Object(); | |
} | |
}).when(mock).voidMethodThatNeedsVerifying; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment