Use of @InjectMock and difference between Mockito.mock Vs @Mock Vs @MockBean
Mockito.mock() Vs @Mock If you want to mock a bean, you can use either Mockito.mock() or @Mock Annotation. Both giving the same result. There are slight advantages of @Mock Annotation…