Search in sources :

Example 1 with PersonalProjectService

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");
}
Also used : DataStorage(com.epam.ta.reportportal.database.DataStorage) UserRepository(com.epam.ta.reportportal.database.dao.UserRepository) ProjectRepository(com.epam.ta.reportportal.database.dao.ProjectRepository) PersonalProjectService(com.epam.ta.reportportal.database.personal.PersonalProjectService) Queryable(com.epam.ta.reportportal.database.search.Queryable) Test(org.junit.Test)

Aggregations

DataStorage (com.epam.ta.reportportal.database.DataStorage)1 ProjectRepository (com.epam.ta.reportportal.database.dao.ProjectRepository)1 UserRepository (com.epam.ta.reportportal.database.dao.UserRepository)1 PersonalProjectService (com.epam.ta.reportportal.database.personal.PersonalProjectService)1 Queryable (com.epam.ta.reportportal.database.search.Queryable)1 Test (org.junit.Test)1