use of org.eclipse.mylyn.commons.net.AuthenticationCredentials in project linuxtools by eclipse.
the class OSIORestTestFixture method repository.
public TaskRepository repository() {
if (repository != null) {
return repository;
}
repository = new TaskRepository(getConnectorKind(), getRepositoryUrl());
UserCredentials credentials = CommonTestUtil.getCredentials(PrivilegeLevel.USER);
repository.setCredentials(org.eclipse.mylyn.commons.net.AuthenticationType.REPOSITORY, new AuthenticationCredentials(credentials.getUserName(), credentials.getPassword()), true);
return repository;
}
Aggregations