use of ca.corefacility.bioinformatics.irida.service.SequencingRunService 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);
}
use of ca.corefacility.bioinformatics.irida.service.SequencingRunService in project irida by phac-nml.
the class SequencingRunControllerTest method setup.
@Before
public void setup() {
sequencingRunService = mock(SequencingRunService.class);
objectService = mock(SequencingObjectService.class);
messageSource = mock(MessageSource.class);
controller = new SequencingRunController(sequencingRunService, objectService, messageSource);
}
Aggregations