This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Testing and the fly likes Any important feature missing in Mockito? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Any important feature missing in Mockito?" Watch "Any important feature missing in Mockito?" New topic

Any important feature missing in Mockito?

Fredrik Johansson

Joined: Aug 09, 2011
Posts: 7
Hi Tomek!

There are a lot of different mock frameworks available. Is there any important feature which you are missing in Mockito?

Best regards

Tomek Kaczanowski
Ranch Hand

Joined: Oct 26, 2005
Posts: 40

Hi Fredrik,

at first I wanted to answer with short "no", but after few minutes of head scratching I think there is more to say.

I think that Mockito is pretty complete, and there is nothing I miss there. Mockito gives you total control when mocking a well designed, loosely coupled code (but, as it was discussed in other thread ,it will not help you with mocking of final classes, static methods and such).

There is always room for improvement though! Recently I have found Komarro framework builds upon Mockito, and goes a step further allowing writing tests, which are even less coupled with implementation. Which means, that Mockito - currently number 1 - can be still improved.

Tomek Kaczanowski
Book author: Practical Unit Testing with TestNG and Mockito
I agree. Here's the link:
subject: Any important feature missing in Mockito?
It's not a secret anymore!