Search in sources :

Example 1 with ReadSequencingObjectPermission

use of ca.corefacility.bioinformatics.irida.security.permissions.files.ReadSequencingObjectPermission 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);
}
Also used : SampleRepository(ca.corefacility.bioinformatics.irida.repositories.sample.SampleRepository) ReadSequencingObjectPermission(ca.corefacility.bioinformatics.irida.security.permissions.files.ReadSequencingObjectPermission) ReadProjectPermission(ca.corefacility.bioinformatics.irida.security.permissions.project.ReadProjectPermission) UserRepository(ca.corefacility.bioinformatics.irida.repositories.user.UserRepository) ProjectSampleJoinRepository(ca.corefacility.bioinformatics.irida.repositories.joins.project.ProjectSampleJoinRepository) SequencingObjectRepository(ca.corefacility.bioinformatics.irida.repositories.sequencefile.SequencingObjectRepository) SampleSequencingObjectJoinRepository(ca.corefacility.bioinformatics.irida.repositories.joins.sample.SampleSequencingObjectJoinRepository) ReadSamplePermission(ca.corefacility.bioinformatics.irida.security.permissions.sample.ReadSamplePermission) Before(org.junit.Before)

Aggregations

ProjectSampleJoinRepository (ca.corefacility.bioinformatics.irida.repositories.joins.project.ProjectSampleJoinRepository)1 SampleSequencingObjectJoinRepository (ca.corefacility.bioinformatics.irida.repositories.joins.sample.SampleSequencingObjectJoinRepository)1 SampleRepository (ca.corefacility.bioinformatics.irida.repositories.sample.SampleRepository)1 SequencingObjectRepository (ca.corefacility.bioinformatics.irida.repositories.sequencefile.SequencingObjectRepository)1 UserRepository (ca.corefacility.bioinformatics.irida.repositories.user.UserRepository)1 ReadSequencingObjectPermission (ca.corefacility.bioinformatics.irida.security.permissions.files.ReadSequencingObjectPermission)1 ReadProjectPermission (ca.corefacility.bioinformatics.irida.security.permissions.project.ReadProjectPermission)1 ReadSamplePermission (ca.corefacility.bioinformatics.irida.security.permissions.sample.ReadSamplePermission)1 Before (org.junit.Before)1