use of ca.corefacility.bioinformatics.irida.repositories.joins.project.ProjectSampleJoinRepository in project irida by phac-nml.
the class UpdateSamplePermissionTest method setUp.
@Before
public void setUp() {
projectSampleJoinRepository = mock(ProjectSampleJoinRepository.class);
projectOwnerPermission = mock(ProjectOwnerPermission.class);
sampleRepository = mock(SampleRepository.class);
updateSamplePermission = new UpdateSamplePermission(sampleRepository, projectOwnerPermission, projectSampleJoinRepository);
Collection<GrantedAuthority> roles = new ArrayList<>();
roles.add(Role.ROLE_USER);
auth = new UsernamePasswordAuthenticationToken("fbristow", "password1", roles);
}
Aggregations