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);
}
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);
}
Aggregations