use of ca.corefacility.bioinformatics.irida.service.SequencingObjectService 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.SequencingObjectService in project irida by phac-nml.
the class AnalysisControllerTest method init.
@Before
public void init() {
analysisSubmissionServiceMock = mock(AnalysisSubmissionService.class);
iridaWorkflowsServiceMock = mock(IridaWorkflowsService.class);
projectServiceMock = mock(ProjectService.class);
updatePermission = mock(UpdateAnalysisSubmissionPermission.class);
sampleService = mock(SampleService.class);
sequencingObjectService = mock(SequencingObjectService.class);
analysesListingService = mock(AnalysesListingService.class);
MessageSource messageSourceMock = mock(MessageSource.class);
analysisController = new AnalysisController(analysisSubmissionServiceMock, iridaWorkflowsServiceMock, userServiceMock, sampleService, projectServiceMock, updatePermission, metadataTemplateService, sequencingObjectService, analysesListingService, messageSourceMock);
}
use of ca.corefacility.bioinformatics.irida.service.SequencingObjectService 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.SequencingObjectService in project irida by phac-nml.
the class ProjectSamplesControllerTest method setUp.
@Before
public void setUp() {
projectService = mock(ProjectService.class);
sampleService = mock(SampleService.class);
sequencingObjectService = mock(SequencingObjectService.class);
projectUtils = mock(ProjectControllerUtils.class);
messageSource = mock(MessageSource.class);
controller = new ProjectSamplesController(projectService, sampleService, sequencingObjectService, projectUtils, messageSource);
user.setId(1L);
mockSidebarInfo();
}
use of ca.corefacility.bioinformatics.irida.service.SequencingObjectService in project irida by phac-nml.
the class SamplesControllerTest method setUp.
@Before
public void setUp() {
sampleService = mock(SampleService.class);
sequencingObjectService = mock(SequencingObjectService.class);
projectService = mock(ProjectService.class);
metadataTemplateService = mock(MetadataTemplateService.class);
messageSource = mock(MessageSource.class);
updateSamplePermission = mock(UpdateSamplePermission.class);
readSamplePermission = mock(ReadSamplePermission.class);
controller = new SamplesController(sampleService, projectService, sequencingObjectService, updateSamplePermission, metadataTemplateService, messageSource);
}
Aggregations