use of ca.corefacility.bioinformatics.irida.security.permissions.project.ReadProjectPermission in project irida by phac-nml.
the class ReadProjectPermissionTest method setUp.
@Before
public void setUp() {
userRepository = mock(UserRepository.class);
projectRepository = mock(ProjectRepository.class);
pujRepository = mock(ProjectUserJoinRepository.class);
ugpjRepository = mock(UserGroupProjectJoinRepository.class);
ugRepository = mock(UserGroupJoinRepository.class);
readProjectPermission = new ReadProjectPermission(projectRepository, userRepository, pujRepository, ugpjRepository, ugRepository);
}
use of ca.corefacility.bioinformatics.irida.security.permissions.project.ReadProjectPermission 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.project.ReadProjectPermission 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