use of ca.corefacility.bioinformatics.irida.security.permissions.sample.ReadSamplePermission 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);
}
use of ca.corefacility.bioinformatics.irida.security.permissions.sample.ReadSamplePermission in project irida by phac-nml.
the class ReadSamplePermissionTest method setUp.
@Before
public void setUp() {
sampleRepository = mock(SampleRepository.class);
psjRepository = mock(ProjectSampleJoinRepository.class);
readProjectPermission = mock(ReadProjectPermission.class);
readSamplePermission = new ReadSamplePermission(sampleRepository, psjRepository, readProjectPermission);
}
use of ca.corefacility.bioinformatics.irida.security.permissions.sample.ReadSamplePermission in project irida by phac-nml.
the class ReadSequencingObjectPermissionTest method setUp.
@Before
public void setUp() {
userRepository = mock(UserRepository.class);
ssoRepository = mock(SampleSequencingObjectJoinRepository.class);
sequencingObjectRepository = mock(SequencingObjectRepository.class);
psjRepository = mock(ProjectSampleJoinRepository.class);
sampleRepository = mock(SampleRepository.class);
readProjectPermission = mock(ReadProjectPermission.class);
samplePermission = new ReadSamplePermission(sampleRepository, psjRepository, readProjectPermission);
permission = new ReadSequencingObjectPermission(sequencingObjectRepository, samplePermission, ssoRepository);
}
Aggregations