use of ca.corefacility.bioinformatics.irida.repositories.sequencefile.SequencingObjectRepository 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.sequencefile.SequencingObjectRepository in project irida by phac-nml.
the class SampleServiceImplTest method setUp.
@Before
public void setUp() {
sampleRepository = mock(SampleRepository.class);
psjRepository = mock(ProjectSampleJoinRepository.class);
analysisRepository = mock(AnalysisRepository.class);
ssoRepository = mock(SampleSequencingObjectJoinRepository.class);
qcEntryRepository = mock(QCEntryRepository.class);
sequencingObjectRepository = mock(SequencingObjectRepository.class);
sampleGenomeAssemblyJoinRepository = mock(SampleGenomeAssemblyJoinRepository.class);
ValidatorFactory factory = Validation.buildDefaultValidatorFactory();
validator = factory.getValidator();
sampleService = new SampleServiceImpl(sampleRepository, psjRepository, analysisRepository, ssoRepository, qcEntryRepository, sequencingObjectRepository, sampleGenomeAssemblyJoinRepository, userRepository, validator);
}
use of ca.corefacility.bioinformatics.irida.repositories.sequencefile.SequencingObjectRepository in project irida by phac-nml.
the class ReadSequencingObjectPermissionTest method setUp.
@Before
public void setUp() {
userRepository = mock(UserRepository.class);
ssoRepository = mock(SampleSequencingObjectJoinRepository.class);
sequencingObjectRepository = mock(SequencingObjectRepository.class);
psjRepository = mock(ProjectSampleJoinRepository.class);
sampleRepository = mock(SampleRepository.class);
readProjectPermission = mock(ReadProjectPermission.class);
samplePermission = new ReadSamplePermission(sampleRepository, psjRepository, readProjectPermission);
permission = new ReadSequencingObjectPermission(sequencingObjectRepository, samplePermission, ssoRepository);
}
Aggregations