When Mockito’s InjectMocks does not inject mocks

Looking back at the time wasted yesterday while trying to make a trivial functionality work makes me wonder if it was a good idea to begin with… It all started  (and ended) yesterday while I was mentoring a team on the fine art of Java unit testing. We’ve decided to use Mockito’s InjectMocks due to … Continue reading When Mockito’s InjectMocks does not inject mocks