Mockito: How to make a method return an argument that was passed to it

Posted by Abhijeet Kashnia on Stack Overflow See other posts from Stack Overflow or by Abhijeet Kashnia
Published on 2010-04-21T16:11:41Z Indexed on 2010/04/21 16:13 UTC
Read the original article Hit count: 384

Filed under:

Consider a method signature like:

public String myFunction(String abc);

Can Mockito help return the same string that the method received?

© Stack Overflow or respective owner

Related posts about mockito