Saturday, October 04, 2008

Updated my Mockito example

I updated my Mockito example on my wiki.  The example now uses Mockito's annotation support.  Cleans up the setup considerably.


  1. Thanks for the useful example. Things must be moving fast with Mockito development - it seems in your example both Mockito.stub and MockitoAnnotations.Mock are deprecated already in Mockito1.6. Instead, replace with Mockito.when and org.mockito.Mock.

  2. Thanks for the update. I'll have to take a look at Mockito 1.6 here soon.