[Java](EN) Reset Mockito Mock Object

Reset Mockito Mock Object


Environment and Prerequisite

  • Java
  • Mockito


org.mockito.Mockito.reset

reset() Method

    ...
    @Mock
    private UserRepository userRepository;
    ...
    reset(userRepository);
    ...


Reference