Skip to content

Instantly share code, notes, and snippets.

@aphexmunky
Created October 25, 2012 10:12
Show Gist options
  • Save aphexmunky/3951809 to your computer and use it in GitHub Desktop.
Save aphexmunky/3951809 to your computer and use it in GitHub Desktop.
Mockito verify void interactions
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