Search in sources :

Example 6 with SampleService

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

the class SISTRSampleUpdaterTest method setUp.

@Before
public void setUp() {
    sampleService = mock(SampleService.class);
    metadataTemplateService = mock(MetadataTemplateService.class);
    updater = new SISTRSampleUpdater(metadataTemplateService, sampleService);
}
Also used : SampleService(ca.corefacility.bioinformatics.irida.service.sample.SampleService) SISTRSampleUpdater(ca.corefacility.bioinformatics.irida.pipeline.results.impl.SISTRSampleUpdater) MetadataTemplateService(ca.corefacility.bioinformatics.irida.service.sample.MetadataTemplateService) Before(org.junit.Before)

Example 7 with SampleService

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

Example 8 with SampleService

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

the class RESTProjectSamplesControllerTest method setUp.

@Before
public void setUp() {
    projectService = mock(ProjectService.class);
    sampleService = mock(SampleService.class);
    controller = new RESTProjectSamplesController(projectService, sampleService);
}
Also used : SampleService(ca.corefacility.bioinformatics.irida.service.sample.SampleService) ProjectService(ca.corefacility.bioinformatics.irida.service.ProjectService) RESTProjectSamplesController(ca.corefacility.bioinformatics.irida.web.controller.api.projects.RESTProjectSamplesController) Before(org.junit.Before)

Aggregations

SampleService (ca.corefacility.bioinformatics.irida.service.sample.SampleService)8 Before (org.junit.Before)8 ProjectService (ca.corefacility.bioinformatics.irida.service.ProjectService)6 SequencingObjectService (ca.corefacility.bioinformatics.irida.service.SequencingObjectService)5 MessageSource (org.springframework.context.MessageSource)5 CartController (ca.corefacility.bioinformatics.irida.ria.web.analysis.CartController)2 ProjectControllerUtils (ca.corefacility.bioinformatics.irida.ria.web.projects.ProjectControllerUtils)2 UpdateSamplePermission (ca.corefacility.bioinformatics.irida.security.permissions.sample.UpdateSamplePermission)2 MetadataTemplateService (ca.corefacility.bioinformatics.irida.service.sample.MetadataTemplateService)2 UserService (ca.corefacility.bioinformatics.irida.service.user.UserService)2 SISTRSampleUpdater (ca.corefacility.bioinformatics.irida.pipeline.results.impl.SISTRSampleUpdater)1 AnalysisController (ca.corefacility.bioinformatics.irida.ria.web.analysis.AnalysisController)1 ProjectSamplesController (ca.corefacility.bioinformatics.irida.ria.web.projects.ProjectSamplesController)1 ProjectsController (ca.corefacility.bioinformatics.irida.ria.web.projects.ProjectsController)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 AnalysisService (ca.corefacility.bioinformatics.irida.service.AnalysisService)1 AnalysisSubmissionService (ca.corefacility.bioinformatics.irida.service.AnalysisSubmissionService)1