"We decided during the main conference that we should use JUnit 4 and Mockito because we think they are the future of TDD and mocking in Java" - Dan North, the originator of BDD
Mockito has a clean syntax and the patterns and ideas behind mockito make tests more maintainable. Mockito has the power of EasyMock but a smarter syntax. Today I build for my self a simple JUnit test as mockito cheat sheet. So you convince yourself with Mockito and the smart API see the demo test bellow.
Links
- Mockito Project Site
http://code.google.com/p/mockito/ - Documentation Mockito
http://docs.mockito.googlecode.com/hg/latest/org/mockito/Mockito.html - GitHub Project with the Cheat Sheet Test
https://github.com/tux2323/mockito-cheat-sheet