Search in sources :

Example 1 with CartController

use of ca.corefacility.bioinformatics.irida.ria.web.analysis.CartController 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 CartController

use of ca.corefacility.bioinformatics.irida.ria.web.analysis.CartController in project irida by phac-nml.

the class ProjectsControllerTest method setUp.

@Before
public void setUp() {
    projectService = mock(ProjectService.class);
    sampleService = mock(SampleService.class);
    userService = mock(UserService.class);
    projectRemoteService = mock(ProjectRemoteService.class);
    cartController = mock(CartController.class);
    taxonomyService = mock(TaxonomyService.class);
    projectUtils = mock(ProjectControllerUtils.class);
    updateSamplePermission = mock(UpdateSamplePermission.class);
    messageSource = mock(MessageSource.class);
    controller = new ProjectsController(projectService, sampleService, userService, projectRemoteService, projectUtils, taxonomyService, remoteApiService, workflowsService, cartController, updateSamplePermission, messageSource);
    user.setId(1L);
    mockSidebarInfo();
}
Also used : TaxonomyService(ca.corefacility.bioinformatics.irida.service.TaxonomyService) CartController(ca.corefacility.bioinformatics.irida.ria.web.analysis.CartController) SampleService(ca.corefacility.bioinformatics.irida.service.sample.SampleService) UserService(ca.corefacility.bioinformatics.irida.service.user.UserService) ProjectControllerUtils(ca.corefacility.bioinformatics.irida.ria.web.projects.ProjectControllerUtils) ProjectService(ca.corefacility.bioinformatics.irida.service.ProjectService) MessageSource(org.springframework.context.MessageSource) ProjectsController(ca.corefacility.bioinformatics.irida.ria.web.projects.ProjectsController) ProjectRemoteService(ca.corefacility.bioinformatics.irida.service.remote.ProjectRemoteService) UpdateSamplePermission(ca.corefacility.bioinformatics.irida.security.permissions.sample.UpdateSamplePermission) Before(org.junit.Before)

Example 3 with CartController

use of ca.corefacility.bioinformatics.irida.ria.web.analysis.CartController in project irida by phac-nml.

the class CartControllerTest method setup.

@Before
public void setup() {
    sampleService = mock(SampleService.class);
    projectService = mock(ProjectService.class);
    userService = mock(UserService.class);
    sequencingObjectService = mock(SequencingObjectService.class);
    messageSource = mock(MessageSource.class);
    controller = new CartController(sampleService, userService, projectService, sequencingObjectService, messageSource);
    testData();
}
Also used : SequencingObjectService(ca.corefacility.bioinformatics.irida.service.SequencingObjectService) CartController(ca.corefacility.bioinformatics.irida.ria.web.analysis.CartController) SampleService(ca.corefacility.bioinformatics.irida.service.sample.SampleService) UserService(ca.corefacility.bioinformatics.irida.service.user.UserService) ProjectService(ca.corefacility.bioinformatics.irida.service.ProjectService) MessageSource(org.springframework.context.MessageSource) Before(org.junit.Before)

Aggregations

CartController (ca.corefacility.bioinformatics.irida.ria.web.analysis.CartController)3 ProjectService (ca.corefacility.bioinformatics.irida.service.ProjectService)3 UserService (ca.corefacility.bioinformatics.irida.service.user.UserService)3 Before (org.junit.Before)3 MessageSource (org.springframework.context.MessageSource)3 UpdateSamplePermission (ca.corefacility.bioinformatics.irida.security.permissions.sample.UpdateSamplePermission)2 SequencingObjectService (ca.corefacility.bioinformatics.irida.service.SequencingObjectService)2 SampleService (ca.corefacility.bioinformatics.irida.service.sample.SampleService)2 AnalysisSubmissionSampleProcessor (ca.corefacility.bioinformatics.irida.pipeline.results.AnalysisSubmissionSampleProcessor)1 GalaxyToolDataService (ca.corefacility.bioinformatics.irida.pipeline.upload.galaxy.GalaxyToolDataService)1 PipelineController (ca.corefacility.bioinformatics.irida.ria.web.pipelines.PipelineController)1 ProjectControllerUtils (ca.corefacility.bioinformatics.irida.ria.web.projects.ProjectControllerUtils)1 ProjectsController (ca.corefacility.bioinformatics.irida.ria.web.projects.ProjectsController)1 AnalysisSubmissionService (ca.corefacility.bioinformatics.irida.service.AnalysisSubmissionService)1 ReferenceFileService (ca.corefacility.bioinformatics.irida.service.ReferenceFileService)1 TaxonomyService (ca.corefacility.bioinformatics.irida.service.TaxonomyService)1 ProjectRemoteService (ca.corefacility.bioinformatics.irida.service.remote.ProjectRemoteService)1 IridaWorkflowsService (ca.corefacility.bioinformatics.irida.service.workflow.IridaWorkflowsService)1 WorkflowNamedParametersService (ca.corefacility.bioinformatics.irida.service.workflow.WorkflowNamedParametersService)1