Search in sources :

Example 1 with AnalysesListingService

use of ca.corefacility.bioinformatics.irida.ria.web.services.AnalysesListingService 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 2 with AnalysesListingService

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

AnalysesListingService (ca.corefacility.bioinformatics.irida.ria.web.services.AnalysesListingService)2 UpdateAnalysisSubmissionPermission (ca.corefacility.bioinformatics.irida.security.permissions.analysis.UpdateAnalysisSubmissionPermission)2 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 AnalysisController (ca.corefacility.bioinformatics.irida.ria.web.analysis.AnalysisController)1 ProjectService (ca.corefacility.bioinformatics.irida.service.ProjectService)1 SequencingObjectService (ca.corefacility.bioinformatics.irida.service.SequencingObjectService)1 SampleService (ca.corefacility.bioinformatics.irida.service.sample.SampleService)1