P E N C I L
Login
Mockito Basic
  1. Mockito.reset()
  2. @RunWith(MockitoJunitRunner.class)
    @InjectMocks
    @Mock
  3. verify(obj, never()).dosomething()
  4. ArgumentCaptor
    ArgumentCaptor captor = ArgumentCaptor.forClass(Clazz.class);
    verify(dao).save(argumentCaptor.capture()); value=captor.getValue()