Search in sources :

Example 1 with SequencingObjectService

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);
}
Also used : RESTSampleSequenceFilesController(ca.corefacility.bioinformatics.irida.web.controller.api.samples.RESTSampleSequenceFilesController) SequencingObjectService(ca.corefacility.bioinformatics.irida.service.SequencingObjectService) SampleService(ca.corefacility.bioinformatics.irida.service.sample.SampleService) SequencingRunService(ca.corefacility.bioinformatics.irida.service.SequencingRunService) AnalysisService(ca.corefacility.bioinformatics.irida.service.AnalysisService) Before(org.junit.Before)

Example 2 with SequencingObjectService

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);
}
Also used : AnalysesListingService(ca.corefacility.bioinformatics.irida.ria.web.services.AnalysesListingService) SequencingObjectService(ca.corefacility.bioinformatics.irida.service.SequencingObjectService) SampleService(ca.corefacility.bioinformatics.irida.service.sample.SampleService) AnalysisSubmissionService(ca.corefacility.bioinformatics.irida.service.AnalysisSubmissionService) IridaWorkflowsService(ca.corefacility.bioinformatics.irida.service.workflow.IridaWorkflowsService) ProjectService(ca.corefacility.bioinformatics.irida.service.ProjectService) MessageSource(org.springframework.context.MessageSource) UpdateAnalysisSubmissionPermission(ca.corefacility.bioinformatics.irida.security.permissions.analysis.UpdateAnalysisSubmissionPermission) AnalysisController(ca.corefacility.bioinformatics.irida.ria.web.analysis.AnalysisController) Before(org.junit.Before)

Example 3 with SequencingObjectService

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("");
}
Also used : CartController(ca.corefacility.bioinformatics.irida.ria.web.analysis.CartController) SequencingObjectService(ca.corefacility.bioinformatics.irida.service.SequencingObjectService) GalaxyToolDataService(ca.corefacility.bioinformatics.irida.pipeline.upload.galaxy.GalaxyToolDataService) UserService(ca.corefacility.bioinformatics.irida.service.user.UserService) AnalysisSubmissionService(ca.corefacility.bioinformatics.irida.service.AnalysisSubmissionService) IridaWorkflowsService(ca.corefacility.bioinformatics.irida.service.workflow.IridaWorkflowsService) ProjectService(ca.corefacility.bioinformatics.irida.service.ProjectService) MessageSource(org.springframework.context.MessageSource) ReferenceFileService(ca.corefacility.bioinformatics.irida.service.ReferenceFileService) PipelineController(ca.corefacility.bioinformatics.irida.ria.web.pipelines.PipelineController) UpdateSamplePermission(ca.corefacility.bioinformatics.irida.security.permissions.sample.UpdateSamplePermission) WorkflowNamedParametersService(ca.corefacility.bioinformatics.irida.service.workflow.WorkflowNamedParametersService) AnalysisSubmissionSampleProcessor(ca.corefacility.bioinformatics.irida.pipeline.results.AnalysisSubmissionSampleProcessor) Before(org.junit.Before)

Example 4 with SequencingObjectService

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();
}
Also used : SequencingObjectService(ca.corefacility.bioinformatics.irida.service.SequencingObjectService) SampleService(ca.corefacility.bioinformatics.irida.service.sample.SampleService) ProjectControllerUtils(ca.corefacility.bioinformatics.irida.ria.web.projects.ProjectControllerUtils) ProjectService(ca.corefacility.bioinformatics.irida.service.ProjectService) MessageSource(org.springframework.context.MessageSource) ProjectSamplesController(ca.corefacility.bioinformatics.irida.ria.web.projects.ProjectSamplesController) Before(org.junit.Before)

Example 5 with SequencingObjectService

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);
}
Also used : SequencingObjectService(ca.corefacility.bioinformatics.irida.service.SequencingObjectService) SamplesController(ca.corefacility.bioinformatics.irida.ria.web.samples.SamplesController) SampleService(ca.corefacility.bioinformatics.irida.service.sample.SampleService) ProjectService(ca.corefacility.bioinformatics.irida.service.ProjectService) MessageSource(org.springframework.context.MessageSource) MetadataTemplateService(ca.corefacility.bioinformatics.irida.service.sample.MetadataTemplateService) ReadSamplePermission(ca.corefacility.bioinformatics.irida.security.permissions.sample.ReadSamplePermission) UpdateSamplePermission(ca.corefacility.bioinformatics.irida.security.permissions.sample.UpdateSamplePermission) Before(org.junit.Before)

Aggregations

SequencingObjectService (ca.corefacility.bioinformatics.irida.service.SequencingObjectService)6 Before (org.junit.Before)6 ProjectService (ca.corefacility.bioinformatics.irida.service.ProjectService)5 SampleService (ca.corefacility.bioinformatics.irida.service.sample.SampleService)5 MessageSource (org.springframework.context.MessageSource)5 CartController (ca.corefacility.bioinformatics.irida.ria.web.analysis.CartController)2 UpdateSamplePermission (ca.corefacility.bioinformatics.irida.security.permissions.sample.UpdateSamplePermission)2 AnalysisSubmissionService (ca.corefacility.bioinformatics.irida.service.AnalysisSubmissionService)2 UserService (ca.corefacility.bioinformatics.irida.service.user.UserService)2 IridaWorkflowsService (ca.corefacility.bioinformatics.irida.service.workflow.IridaWorkflowsService)2 AnalysisSubmissionSampleProcessor (ca.corefacility.bioinformatics.irida.pipeline.results.AnalysisSubmissionSampleProcessor)1 GalaxyToolDataService (ca.corefacility.bioinformatics.irida.pipeline.upload.galaxy.GalaxyToolDataService)1 AnalysisController (ca.corefacility.bioinformatics.irida.ria.web.analysis.AnalysisController)1 PipelineController (ca.corefacility.bioinformatics.irida.ria.web.pipelines.PipelineController)1 ProjectControllerUtils (ca.corefacility.bioinformatics.irida.ria.web.projects.ProjectControllerUtils)1 ProjectSamplesController (ca.corefacility.bioinformatics.irida.ria.web.projects.ProjectSamplesController)1 SamplesController (ca.corefacility.bioinformatics.irida.ria.web.samples.SamplesController)1 AnalysesListingService (ca.corefacility.bioinformatics.irida.ria.web.services.AnalysesListingService)1 UpdateAnalysisSubmissionPermission (ca.corefacility.bioinformatics.irida.security.permissions.analysis.UpdateAnalysisSubmissionPermission)1 ReadSamplePermission (ca.corefacility.bioinformatics.irida.security.permissions.sample.ReadSamplePermission)1