Last active
July 12, 2017 17:11
-
-
Save pfrozi/a5e82ecf21eacc84a4044a950cd346f0 to your computer and use it in GitHub Desktop.
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
doAnswer(new Answer() { | |
public Object answer(InvocationOnMock invocation) { | |
Object[] args = invocation.getArguments(); | |
((objectToAlter)args[0]).campo1 = 1; | |
((objectToAlter)args[0]).campo2 = 2; | |
return null; | |
}}) | |
.when(xxxx).method(entry()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment