Search in sources :

Example 1 with SequencingRunService

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);
}
Also used : Path(java.nio.file.Path) SequencingObjectService(ca.corefacility.bioinformatics.irida.service.SequencingObjectService) SequenceFile(ca.corefacility.bioinformatics.irida.model.sequenceFile.SequenceFile) SingleEndSequenceFile(ca.corefacility.bioinformatics.irida.model.sequenceFile.SingleEndSequenceFile) SequencingRunService(ca.corefacility.bioinformatics.irida.service.SequencingRunService) AnalysisService(ca.corefacility.bioinformatics.irida.service.AnalysisService) SequenceFileController(ca.corefacility.bioinformatics.irida.ria.web.files.SequenceFileController) SingleEndSequenceFile(ca.corefacility.bioinformatics.irida.model.sequenceFile.SingleEndSequenceFile) Before(org.junit.Before)

Example 2 with SequencingRunService

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);
}
Also used : SequencingObjectService(ca.corefacility.bioinformatics.irida.service.SequencingObjectService) MessageSource(org.springframework.context.MessageSource) SequencingRunController(ca.corefacility.bioinformatics.irida.ria.web.SequencingRunController) SequencingRunService(ca.corefacility.bioinformatics.irida.service.SequencingRunService) Before(org.junit.Before)

Aggregations

SequencingObjectService (ca.corefacility.bioinformatics.irida.service.SequencingObjectService)2 SequencingRunService (ca.corefacility.bioinformatics.irida.service.SequencingRunService)2 Before (org.junit.Before)2 SequenceFile (ca.corefacility.bioinformatics.irida.model.sequenceFile.SequenceFile)1 SingleEndSequenceFile (ca.corefacility.bioinformatics.irida.model.sequenceFile.SingleEndSequenceFile)1 SequencingRunController (ca.corefacility.bioinformatics.irida.ria.web.SequencingRunController)1 SequenceFileController (ca.corefacility.bioinformatics.irida.ria.web.files.SequenceFileController)1 AnalysisService (ca.corefacility.bioinformatics.irida.service.AnalysisService)1 Path (java.nio.file.Path)1 MessageSource (org.springframework.context.MessageSource)1