Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestFixture.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestFixture.java b/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestFixture.java
index 417b61118..f2cfd6e11 100644
--- a/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestFixture.java
+++ b/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestFixture.java
@@ -173,10 +173,14 @@ public abstract class TestFixture {
}
public AbstractWebLocation location(PrivilegeLevel level, Proxy proxy) throws Exception {
- UserCredentials credentials = CommonTestUtil.getCredentials(level);
+ UserCredentials credentials = getCredentials(level);
return location(credentials.getUserName(), credentials.getPassword(), proxy);
}
+ protected UserCredentials getCredentials(PrivilegeLevel level) {
+ return CommonTestUtil.getCredentials(level);
+ }
+
public AbstractWebLocation location(String username, String password) throws Exception {
return location(username, password, WebUtil.getProxyForUrl(repositoryUrl));
}
@@ -191,7 +195,7 @@ public abstract class TestFixture {
public TaskRepository repository() {
TaskRepository repository = new TaskRepository(connectorKind, repositoryUrl);
- UserCredentials credentials = CommonTestUtil.getCredentials(PrivilegeLevel.USER);
+ UserCredentials credentials = getCredentials(PrivilegeLevel.USER);
repository.setCredentials(AuthenticationType.REPOSITORY,
new AuthenticationCredentials(credentials.getUserName(), credentials.getPassword()), false);
return repository;
@@ -219,7 +223,7 @@ public abstract class TestFixture {
resetRepositories();
TaskRepository repository = new TaskRepository(connectorKind, repositoryUrl);
- UserCredentials credentials = CommonTestUtil.getCredentials(PrivilegeLevel.USER);
+ UserCredentials credentials = getCredentials(PrivilegeLevel.USER);
repository.setCredentials(AuthenticationType.REPOSITORY,
new AuthenticationCredentials(credentials.getUserName(), credentials.getPassword()), true);
configureRepository(repository);

Back to the top