Answer the question
In order to leave comments, you need to log in
Mock framework for Java?
I watched the reviews, Mockito looks nice, but my hands haven't gotten around to trying it yet.
Any advice from your experience? Pros-cons-rake?
Answer the question
In order to leave comments, you need to log in
I use jmockit, it runs as a machine java agent, it can do everything, for example, redefine classes. Of the minuses: not obvious syntax, mockito is easier.
Mockito is somehow easier than easymock. Although I moved to it just from the last one.
True, you also need to use PowerMock in order to be able to wet static methods.
Mockito is cool, yes. Only you, this, do not overdo it with mocks. They save when it is already impossible to test the code in a human way.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question