views:

518

answers:

2

i am required to use mockito to create unit testing framework for existing code. I am unable to find a good place to get started with learning Mockito. Could you please point me to a good learning resource for mockito? (online resource or otherwise)

+2  A: 

This is a good basic introduction:

http://tutorial.fyicenter.com/out.php?ID=3966

This tutorial is a bit more in-depth:

http://schuchert.wikispaces.com/Mockito.LoginServiceExample

Is there anything in particular you want to learn about?

Rich Seller
+3  A: 

In the "Help me to start" thread on the mockito discussion group on Google, Szczepan Faber, the project owner of mockito, suggests:

I'd take a look at the posts in the mockito category of Szczepan's blog too.

Pascal Thivent
The javadoc included with the source is pretty much all I needed to get a basic grasp of how to use it. +1
Grundlefleck