When creating tests and mocking dependencies, what is the difference between these three approaches?
-
@MockBean:
@MockBean MyService myservice;
-
@Mock:
@Mock MyService myservice;
-
Mockito.mock()
MyService myservice = Mockito.mock(MyService.class);