You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mockito
Hi Everyone,
Is there any way to instruct Mockito to perform copies of the arguments it captures? It would appear that this just retains a reference to the arguments it sees and when such arguments are reused (or altered) than you loose the original capture information. I've attached a sample Java class that illustrates the problem I'm referring to in a hypothetical situation (my actual test is similar in that the I/0 buffer array is reused for efficiency and exhibits the exact same problem). Any help is appreciated; thanks!