Search code examples
javaunit-testingmockingstubisolation-frameworks

Which is the best isolation framework for Java? JMock, Easymock, Mockito, or other?


I realize this has been asked before, but the last time was in mid 2008.

If you were starting a new project right now, which one would you use and why? What are their strengths/weaknesses regarding readability, usability, maintainability, and overall robustness?


Solution

  • I have used Easymock earlier, but now I'm using Mockito. I found Mockito simpler as compared to Easymock. For the detailed comparison of Easymock and Mockito you can refer here