6. Conclusion
So, we have seen all the features of EasyMock to create mock objects for unit tests. Like you’ve seen, it’s a really simple but powerful way to verify the behaviour of an object depending on an other. There are others libraries for mock objects like JMock, JMockit or Mockito, but personally, i think EasyMock is most comfortable to use and give all the features i need to make my own unit tests. That’s why i choose this library to make this article.
I hope this article has interested you. Don’t hesitate to comment it ![]()
Pingback: JUnit: Automatically Managing Mocks « Ted Young