use of ca.corefacility.bioinformatics.irida.service.sample.SampleService 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.sample.SampleService 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.sample.SampleService 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.sample.SampleService 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();
}
use of ca.corefacility.bioinformatics.irida.service.sample.SampleService 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