Monthly Archives: January 2015

Using Matches for null parameter with Mockito

I was using Mockito to write a unit test today and had a brief struggle trying to write a Matcher for a parameter I expected to be null. Here is the method in my interface that was causing problems: public … Continue reading

Posted in Java, Mockito | Tagged , | Leave a comment