Search in sources :

Example 1 with ProjectRepository

use of ca.corefacility.bioinformatics.irida.repositories.ProjectRepository in project irida by phac-nml.

the class ProjectServiceImplTest method setUp.

@Before
public void setUp() {
    validator = mock(Validator.class);
    projectRepository = mock(ProjectRepository.class);
    sampleRepository = mock(SampleRepository.class);
    userRepository = mock(UserRepository.class);
    pujRepository = mock(ProjectUserJoinRepository.class);
    psjRepository = mock(ProjectSampleJoinRepository.class);
    relatedProjectRepository = mock(RelatedProjectRepository.class);
    referenceFileRepository = mock(ReferenceFileRepository.class);
    prfjRepository = mock(ProjectReferenceFileJoinRepository.class);
    ugpjRepository = mock(UserGroupProjectJoinRepository.class);
    sequencingObjectRepository = mock(SequencingObjectRepository.class);
    projectService = new ProjectServiceImpl(projectRepository, sampleRepository, userRepository, pujRepository, psjRepository, relatedProjectRepository, referenceFileRepository, prfjRepository, ugpjRepository, ssoRepository, pasRepository, sequencingObjectRepository, validator);
}
Also used : SampleRepository(ca.corefacility.bioinformatics.irida.repositories.sample.SampleRepository) RelatedProjectRepository(ca.corefacility.bioinformatics.irida.repositories.joins.project.RelatedProjectRepository) ProjectRepository(ca.corefacility.bioinformatics.irida.repositories.ProjectRepository) UserRepository(ca.corefacility.bioinformatics.irida.repositories.user.UserRepository) RelatedProjectRepository(ca.corefacility.bioinformatics.irida.repositories.joins.project.RelatedProjectRepository) ProjectSampleJoinRepository(ca.corefacility.bioinformatics.irida.repositories.joins.project.ProjectSampleJoinRepository) SequencingObjectRepository(ca.corefacility.bioinformatics.irida.repositories.sequencefile.SequencingObjectRepository) UserGroupProjectJoinRepository(ca.corefacility.bioinformatics.irida.repositories.joins.project.UserGroupProjectJoinRepository) ProjectUserJoinRepository(ca.corefacility.bioinformatics.irida.repositories.joins.project.ProjectUserJoinRepository) ReferenceFileRepository(ca.corefacility.bioinformatics.irida.repositories.referencefile.ReferenceFileRepository) Validator(javax.validation.Validator) ProjectReferenceFileJoinRepository(ca.corefacility.bioinformatics.irida.repositories.joins.project.ProjectReferenceFileJoinRepository) ProjectServiceImpl(ca.corefacility.bioinformatics.irida.service.impl.ProjectServiceImpl) Before(org.junit.Before)

Example 2 with ProjectRepository

use of ca.corefacility.bioinformatics.irida.repositories.ProjectRepository in project irida by phac-nml.

the class ReadProjectPermissionTest method setUp.

@Before
public void setUp() {
    userRepository = mock(UserRepository.class);
    projectRepository = mock(ProjectRepository.class);
    pujRepository = mock(ProjectUserJoinRepository.class);
    ugpjRepository = mock(UserGroupProjectJoinRepository.class);
    ugRepository = mock(UserGroupJoinRepository.class);
    readProjectPermission = new ReadProjectPermission(projectRepository, userRepository, pujRepository, ugpjRepository, ugRepository);
}
Also used : ReadProjectPermission(ca.corefacility.bioinformatics.irida.security.permissions.project.ReadProjectPermission) UserRepository(ca.corefacility.bioinformatics.irida.repositories.user.UserRepository) ProjectRepository(ca.corefacility.bioinformatics.irida.repositories.ProjectRepository) UserGroupProjectJoinRepository(ca.corefacility.bioinformatics.irida.repositories.joins.project.UserGroupProjectJoinRepository) UserGroupJoinRepository(ca.corefacility.bioinformatics.irida.repositories.user.UserGroupJoinRepository) ProjectUserJoinRepository(ca.corefacility.bioinformatics.irida.repositories.joins.project.ProjectUserJoinRepository) Before(org.junit.Before)

Aggregations

ProjectRepository (ca.corefacility.bioinformatics.irida.repositories.ProjectRepository)2 ProjectUserJoinRepository (ca.corefacility.bioinformatics.irida.repositories.joins.project.ProjectUserJoinRepository)2 UserGroupProjectJoinRepository (ca.corefacility.bioinformatics.irida.repositories.joins.project.UserGroupProjectJoinRepository)2 UserRepository (ca.corefacility.bioinformatics.irida.repositories.user.UserRepository)2 Before (org.junit.Before)2 ProjectReferenceFileJoinRepository (ca.corefacility.bioinformatics.irida.repositories.joins.project.ProjectReferenceFileJoinRepository)1 ProjectSampleJoinRepository (ca.corefacility.bioinformatics.irida.repositories.joins.project.ProjectSampleJoinRepository)1 RelatedProjectRepository (ca.corefacility.bioinformatics.irida.repositories.joins.project.RelatedProjectRepository)1 ReferenceFileRepository (ca.corefacility.bioinformatics.irida.repositories.referencefile.ReferenceFileRepository)1 SampleRepository (ca.corefacility.bioinformatics.irida.repositories.sample.SampleRepository)1 SequencingObjectRepository (ca.corefacility.bioinformatics.irida.repositories.sequencefile.SequencingObjectRepository)1 UserGroupJoinRepository (ca.corefacility.bioinformatics.irida.repositories.user.UserGroupJoinRepository)1 ReadProjectPermission (ca.corefacility.bioinformatics.irida.security.permissions.project.ReadProjectPermission)1 ProjectServiceImpl (ca.corefacility.bioinformatics.irida.service.impl.ProjectServiceImpl)1 Validator (javax.validation.Validator)1