Here is what I see from my experience on the Java side of the fence.
Unit Testing Structures
As for unit testing in Java, almost everyone uses JUnit and JUnit 4.0 using annotations, I understand that now it is more like NUnit.
Hiding frames
We used EasyMock in our project for about six months, and we determined that he ate a lot of our time just for simple tasks. In fact, we joked a lot about how EasyMock is not easy.
After attending a lecture on mocking frames, I decided to go with Mockito and never looked back. This allows you to partially mock painlessly - for which EasyMock requires a separate library. In addition, Mockito has much better error messages. When you do something wrong, it will give you detailed errors about how you broke the Mockito contract.
In any case, give both spins, and I think you will agree that Mokito is a clear winner.
source share