Mockito: Why You Still Should Appreciate InjectMocks Annotation
Anyone who has used Mockito for mocking and stubbing Java classes, probably is familiar with the InjectMocks-annotation. I seemed a little harsh in an article a few years back about why you should not use @InjectMocks to auto-wire fields, even though I actually consider Mockito to be one of the most brilliant mocking frameworks for unit testing in Java. Every … Lees verder Mockito: Why You Still Should Appreciate InjectMocks Annotation