use of ca.corefacility.bioinformatics.irida.service.impl.sample.SampleServiceImpl 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);
}
Aggregations