Search in sources :

Example 1 with QCEntryRepository

use of ca.corefacility.bioinformatics.irida.repositories.sample.QCEntryRepository 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)

Example 2 with QCEntryRepository

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

the class CoverageFileProcessorTest method setup.

@Before
public void setup() {
    qcEntryRepository = mock(QCEntryRepository.class);
    analysisRepository = mock(AnalysisRepository.class);
    processor = new CoverageFileProcessor(qcEntryRepository, analysisRepository);
}
Also used : QCEntryRepository(ca.corefacility.bioinformatics.irida.repositories.sample.QCEntryRepository) AnalysisRepository(ca.corefacility.bioinformatics.irida.repositories.analysis.AnalysisRepository) CoverageFileProcessor(ca.corefacility.bioinformatics.irida.processing.impl.CoverageFileProcessor) Before(org.junit.Before)

Aggregations

AnalysisRepository (ca.corefacility.bioinformatics.irida.repositories.analysis.AnalysisRepository)2 QCEntryRepository (ca.corefacility.bioinformatics.irida.repositories.sample.QCEntryRepository)2 Before (org.junit.Before)2 CoverageFileProcessor (ca.corefacility.bioinformatics.irida.processing.impl.CoverageFileProcessor)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 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