Search in sources :

Example 1 with MetadataTemplateService

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

Example 2 with MetadataTemplateService

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

Aggregations

MetadataTemplateService (ca.corefacility.bioinformatics.irida.service.sample.MetadataTemplateService)2 SampleService (ca.corefacility.bioinformatics.irida.service.sample.SampleService)2 Before (org.junit.Before)2 SISTRSampleUpdater (ca.corefacility.bioinformatics.irida.pipeline.results.impl.SISTRSampleUpdater)1 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 MessageSource (org.springframework.context.MessageSource)1