What are Mockito Extra Interfaces?

On March 24, 2014, Posted by , In JUnit, By ,,,,, , With 7 Comments

Mockito is my favored little helper if it comes down to write light weight JUnit tests. It is very useful to replace the ‘real’ dependencies of a unit under test easily by mocks if necessary. In particular when working on the borderline to framework APIs such dependencies can otherwise be…

Mockito Templates for Eclipse

On February 10, 2014, Posted by , In Eclipse,JUnit, By ,,,, , With Comments Off on Mockito Templates for Eclipse

Sometimes I miss the forest for the trees – and that for a disturbingly long time. I just became aware of this once again recently, typing one of the more verbose mockito expressions for the umpteenth time. The statement in question was a doAnswer(Answer) construct which always feels a bit…