Search in sources :

Example 1 with AnalysisSubmissionService

use of ca.corefacility.bioinformatics.irida.service.AnalysisSubmissionService 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 2 with AnalysisSubmissionService

use of ca.corefacility.bioinformatics.irida.service.AnalysisSubmissionService in project irida by phac-nml.

the class AnalysesListingServiceTest method init.

@Before
public void init() {
    analysisSubmissionService = mock(AnalysisSubmissionService.class);
    IridaWorkflowsService iridaWorkflowsService = mock(IridaWorkflowsService.class);
    UpdateAnalysisSubmissionPermission updateAnalysisPermission = mock(UpdateAnalysisSubmissionPermission.class);
    MessageSource messageSource = mock(MessageSource.class);
    analysesListingService = new AnalysesListingService(analysisSubmissionService, iridaWorkflowsService, updateAnalysisPermission, messageSource);
}
Also used : AnalysesListingService(ca.corefacility.bioinformatics.irida.ria.web.services.AnalysesListingService) AnalysisSubmissionService(ca.corefacility.bioinformatics.irida.service.AnalysisSubmissionService) IridaWorkflowsService(ca.corefacility.bioinformatics.irida.service.workflow.IridaWorkflowsService) MessageSource(org.springframework.context.MessageSource) UpdateAnalysisSubmissionPermission(ca.corefacility.bioinformatics.irida.security.permissions.analysis.UpdateAnalysisSubmissionPermission) Before(org.junit.Before)

Aggregations

AnalysisSubmissionService (ca.corefacility.bioinformatics.irida.service.AnalysisSubmissionService)2 IridaWorkflowsService (ca.corefacility.bioinformatics.irida.service.workflow.IridaWorkflowsService)2 Before (org.junit.Before)2 MessageSource (org.springframework.context.MessageSource)2 AnalysisSubmissionSampleProcessor (ca.corefacility.bioinformatics.irida.pipeline.results.AnalysisSubmissionSampleProcessor)1 GalaxyToolDataService (ca.corefacility.bioinformatics.irida.pipeline.upload.galaxy.GalaxyToolDataService)1 CartController (ca.corefacility.bioinformatics.irida.ria.web.analysis.CartController)1 PipelineController (ca.corefacility.bioinformatics.irida.ria.web.pipelines.PipelineController)1 AnalysesListingService (ca.corefacility.bioinformatics.irida.ria.web.services.AnalysesListingService)1 UpdateAnalysisSubmissionPermission (ca.corefacility.bioinformatics.irida.security.permissions.analysis.UpdateAnalysisSubmissionPermission)1 UpdateSamplePermission (ca.corefacility.bioinformatics.irida.security.permissions.sample.UpdateSamplePermission)1 ProjectService (ca.corefacility.bioinformatics.irida.service.ProjectService)1 ReferenceFileService (ca.corefacility.bioinformatics.irida.service.ReferenceFileService)1 SequencingObjectService (ca.corefacility.bioinformatics.irida.service.SequencingObjectService)1 UserService (ca.corefacility.bioinformatics.irida.service.user.UserService)1 WorkflowNamedParametersService (ca.corefacility.bioinformatics.irida.service.workflow.WorkflowNamedParametersService)1