Question

I have a Spring maven project and we are going to use JMock to test service/business/DAO layers of my project as suggested by client.
Can somebody please provide me the good link going through which I can understand and implement it? Also I have heard of other mocking frameworks like Mockito or EasyMock. Is JMock better than those? or Which one is better to use even? This is just for knowledge sake as I will be using JMock only since it is suggested by the client

Was it helpful?

Solution

This question was also posted to coderanch.com. Copy/pasting my answer from there.

~~~~~~~~~~~~~~~~~~~~~

The official getting started guide and cookbook are good.

All three mock frameworks are good. At the moment, Mockito is somewhat more advanced. All three frameworks are still enhancing though. The next version of jMock catches up.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top