use of ca.corefacility.bioinformatics.irida.service.ReferenceFileService in project irida by phac-nml.
the class PipelineControllerTest method setUp.
@Before
public void setUp() {
referenceFileService = mock(ReferenceFileService.class);
analysisSubmissionService = mock(AnalysisSubmissionService.class);
workflowsService = mock(IridaWorkflowsService.class);
projectService = mock(ProjectService.class);
userService = mock(UserService.class);
messageSource = mock(MessageSource.class);
cartController = mock(CartController.class);
sequencingObjectService = mock(SequencingObjectService.class);
namedParameterService = mock(WorkflowNamedParametersService.class);
updateSamplePermission = mock(UpdateSamplePermission.class);
analysisSubmissionSampleProcessor = mock(AnalysisSubmissionSampleProcessor.class);
galaxyToolDataService = mock(GalaxyToolDataService.class);
controller = new PipelineController(sequencingObjectService, referenceFileService, analysisSubmissionService, workflowsService, projectService, userService, cartController, messageSource, namedParameterService, updateSamplePermission, analysisSubmissionSampleProcessor, galaxyToolDataService);
when(messageSource.getMessage(any(), any(), any())).thenReturn("");
}
use of ca.corefacility.bioinformatics.irida.service.ReferenceFileService in project irida by phac-nml.
the class ReferenceFileControllerTest method setUp.
@Before
public void setUp() {
projectService = mock(ProjectService.class);
referenceFileService = mock(ReferenceFileService.class);
messageSource = mock(MessageSource.class);
// Set up the reference file
Path path = Paths.get(FILE_PATH);
ReferenceFile file = new ReferenceFile(path);
when(referenceFileService.read(FILE_ID)).thenReturn(file);
controller = new ReferenceFileController(projectService, referenceFileService, messageSource);
}
Aggregations