Why Mockito beats Easymock & co.
Submitted by diego on 29 January, 2010 - 16:18Unit testing your application is the key to develop a good piece of software.
Mocking is the key to write good unit tests.
Mockito is the key that opens the door to a way of mocking that has never been so simple and elegant.
Let's take a look at two different versions of the same unit test, the first uses easymock while the second is based on mockito.
EasyMock 2.4: capturing arguments passed to mock objects
Submitted by rommert on 22 September, 2008 - 14:49EasyMock2 is a library that provides an easy way to create on-the-fly mock objects based on interfaces. It can be used in combination with JUnit to create simple and powerful unit tests. Here's an overview of the basic EasyMock flow, followed by a brief example that demonstrates a new feature in EasyMock 2.4: capturing arguments passed to MockObjects.
