Search in sources :

Example 1 with SampleGenomeAssemblyJoinRepository

use of ca.corefacility.bioinformatics.irida.repositories.joins.sample.SampleGenomeAssemblyJoinRepository 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);
}
Also used : SampleRepository(ca.corefacility.bioinformatics.irida.repositories.sample.SampleRepository) QCEntryRepository(ca.corefacility.bioinformatics.irida.repositories.sample.QCEntryRepository) ValidatorFactory(javax.validation.ValidatorFactory) SampleGenomeAssemblyJoinRepository(ca.corefacility.bioinformatics.irida.repositories.joins.sample.SampleGenomeAssemblyJoinRepository) ProjectSampleJoinRepository(ca.corefacility.bioinformatics.irida.repositories.joins.project.ProjectSampleJoinRepository) SampleServiceImpl(ca.corefacility.bioinformatics.irida.service.impl.sample.SampleServiceImpl) SequencingObjectRepository(ca.corefacility.bioinformatics.irida.repositories.sequencefile.SequencingObjectRepository) AnalysisRepository(ca.corefacility.bioinformatics.irida.repositories.analysis.AnalysisRepository) SampleSequencingObjectJoinRepository(ca.corefacility.bioinformatics.irida.repositories.joins.sample.SampleSequencingObjectJoinRepository) Before(org.junit.Before)

Aggregations

AnalysisRepository (ca.corefacility.bioinformatics.irida.repositories.analysis.AnalysisRepository)1 ProjectSampleJoinRepository (ca.corefacility.bioinformatics.irida.repositories.joins.project.ProjectSampleJoinRepository)1 SampleGenomeAssemblyJoinRepository (ca.corefacility.bioinformatics.irida.repositories.joins.sample.SampleGenomeAssemblyJoinRepository)1 SampleSequencingObjectJoinRepository (ca.corefacility.bioinformatics.irida.repositories.joins.sample.SampleSequencingObjectJoinRepository)1 QCEntryRepository (ca.corefacility.bioinformatics.irida.repositories.sample.QCEntryRepository)1 SampleRepository (ca.corefacility.bioinformatics.irida.repositories.sample.SampleRepository)1 SequencingObjectRepository (ca.corefacility.bioinformatics.irida.repositories.sequencefile.SequencingObjectRepository)1 SampleServiceImpl (ca.corefacility.bioinformatics.irida.service.impl.sample.SampleServiceImpl)1 ValidatorFactory (javax.validation.ValidatorFactory)1 Before (org.junit.Before)1