Search in sources :

Example 1 with SamplesController

use of ca.corefacility.bioinformatics.irida.ria.web.samples.SamplesController 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);
}
Also used : SequencingObjectService(ca.corefacility.bioinformatics.irida.service.SequencingObjectService) SamplesController(ca.corefacility.bioinformatics.irida.ria.web.samples.SamplesController) SampleService(ca.corefacility.bioinformatics.irida.service.sample.SampleService) ProjectService(ca.corefacility.bioinformatics.irida.service.ProjectService) MessageSource(org.springframework.context.MessageSource) MetadataTemplateService(ca.corefacility.bioinformatics.irida.service.sample.MetadataTemplateService) ReadSamplePermission(ca.corefacility.bioinformatics.irida.security.permissions.sample.ReadSamplePermission) UpdateSamplePermission(ca.corefacility.bioinformatics.irida.security.permissions.sample.UpdateSamplePermission) Before(org.junit.Before)

Aggregations

SamplesController (ca.corefacility.bioinformatics.irida.ria.web.samples.SamplesController)1 ReadSamplePermission (ca.corefacility.bioinformatics.irida.security.permissions.sample.ReadSamplePermission)1 UpdateSamplePermission (ca.corefacility.bioinformatics.irida.security.permissions.sample.UpdateSamplePermission)1 ProjectService (ca.corefacility.bioinformatics.irida.service.ProjectService)1 SequencingObjectService (ca.corefacility.bioinformatics.irida.service.SequencingObjectService)1 MetadataTemplateService (ca.corefacility.bioinformatics.irida.service.sample.MetadataTemplateService)1 SampleService (ca.corefacility.bioinformatics.irida.service.sample.SampleService)1 Before (org.junit.Before)1 MessageSource (org.springframework.context.MessageSource)1