The main reason for using mock objects to write unit tests is so that they are unit tests. Without mock implementations, unit tests quickly become integration tests, which are much more costly and time-consuming.
Here is my ranking list for Java mock frameworks (supporting JUnit, TestNG) :
Which is the best mock framework to you ?
3 months ago