By alex.soto
via lordofthejars.com
Published: Jul 27 2012 / 08:57
When you are writing unit tests, you must keep in mind to not have dependencies to external components. To avoid this we use mock frameworks which for me the easiest one to use is Mockito.
In this post we are going to see an "advanced" technique used in Mockito to return same argument instance on a mocked method using Answer interface.
Add your comment