use of com.epam.ta.reportportal.database.personal.PersonalProjectService in project service-authorization by reportportal.
the class AbstractUserReplicatorTest method checkEmail.
@Test
public void checkEmail() throws Exception {
UserRepository userRepoMock = mock(UserRepository.class);
when(userRepoMock.exists(Mockito.any(Queryable.class))).thenReturn(false);
AbstractUserReplicator replicator = new AbstractUserReplicator(userRepoMock, mock(ProjectRepository.class), new PersonalProjectService(mock(ProjectRepository.class)), mock(DataStorage.class));
replicator.checkEmail("existing@email.com");
}
Aggregations