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
Asked
Active
Viewed 825 times
0

Anand
- 20,708
- 48
- 131
- 198
-
1possible duplicate of [Spring Junit testing using JMock](http://stackoverflow.com/questions/11529616/spring-junit-testing-using-jmock) – Tomasz Nurkiewicz Jul 22 '12 at 13:39
-
not an exact duplicate..explanation is different – Anand Jul 22 '12 at 13:47
1 Answers
1
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.

Jeanne Boyarsky
- 12,156
- 2
- 49
- 59