Mockito - the enjoyable way of mocking
At the beginning of March I heard about Mockito for the first time. Till the last week I didn’t have any opportunity to play with it. Fortunately I’ve just started a brand new project. After a couple of days I can say that Mockito seriously supports Test-Driven approach and heavily facilitates mocking in Java.
Although there’s a number of other mocking libraries, this one is definitely worth trying. It’s simpler and faster. Instead of tediously configuring each mock you just ask questions about interactions after execution. If it’s unclear here’s a comparison between EasyMock and Mockito. Enjoy & good luck!