use of ca.corefacility.bioinformatics.irida.service.AnalysisService in project irida by phac-nml.
the class SampleSequenceFilesControllerTest method setUp.
@Before
public void setUp() {
sampleService = mock(SampleService.class);
miseqRunService = mock(SequencingRunService.class);
sequencingObjectService = mock(SequencingObjectService.class);
analysisService = mock(AnalysisService.class);
controller = new RESTSampleSequenceFilesController(sampleService, miseqRunService, sequencingObjectService, analysisService);
}
use of ca.corefacility.bioinformatics.irida.service.AnalysisService in project irida by phac-nml.
the class SequenceFileControllerTest method setUp.
@Before
public void setUp() {
sequencingRunService = mock(SequencingRunService.class);
analysisService = mock(AnalysisService.class);
objectService = mock(SequencingObjectService.class);
controller = new SequenceFileController(objectService, sequencingRunService, analysisService);
Path path = Paths.get(FILE_PATH);
SequenceFile file = new SequenceFile(path);
file.setId(FILE_ID);
SingleEndSequenceFile seqObject = new SingleEndSequenceFile(file);
when(objectService.read(anyLong())).thenReturn(seqObject);
}
Aggregations