Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-02-21 02:51:36 +0000
committerspingel2010-02-21 02:51:36 +0000
commit51e2e057c238a669cd982cb21e1bb3380697a699 (patch)
tree7e12cd58a14209244ebbd307d30f36eb32b2680c /org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests
parent8f9bb7febe7c90309176956d1d020ca51c5d7654 (diff)
downloadorg.eclipse.mylyn.tasks-51e2e057c238a669cd982cb21e1bb3380697a699.tar.gz
org.eclipse.mylyn.tasks-51e2e057c238a669cd982cb21e1bb3380697a699.tar.xz
org.eclipse.mylyn.tasks-51e2e057c238a669cd982cb21e1bb3380697a699.zip
NEW - bug 302792: Trac tests spuriously fail with authentication errors
https://bugs.eclipse.org/bugs/show_bug.cgi?id=302792
Diffstat (limited to 'org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests')
-rw-r--r--org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestFixture.java3
-rw-r--r--org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestUtil.java2
2 files changed, 4 insertions, 1 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 2d6b9afac..3516b414c 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
@@ -168,6 +168,7 @@ public abstract class TestFixture {
public AbstractWebLocation location(PrivilegeLevel level, Proxy proxy) throws Exception {
Credentials credentials = TestUtil.readCredentials(level);
+ System.err.println(" Read credentials: " + credentials + " (" + level + ")"); //$NON-NLS-1$
return location(credentials.username, credentials.password, proxy);
}
@@ -186,6 +187,7 @@ public abstract class TestFixture {
public TaskRepository repository() {
TaskRepository repository = new TaskRepository(connectorKind, repositoryUrl);
Credentials credentials = TestUtil.readCredentials(PrivilegeLevel.USER);
+ System.err.println(" Read credentials: " + credentials); //$NON-NLS-1$
repository.setCredentials(AuthenticationType.REPOSITORY, new AuthenticationCredentials(credentials.username,
credentials.password), false);
return repository;
@@ -211,6 +213,7 @@ public abstract class TestFixture {
TaskRepository repository = new TaskRepository(connectorKind, repositoryUrl);
Credentials credentials = TestUtil.readCredentials(PrivilegeLevel.USER);
+ System.err.println(" Read credentials: " + credentials); //$NON-NLS-1$
repository.setCredentials(AuthenticationType.REPOSITORY, new AuthenticationCredentials(credentials.username,
credentials.password), true);
configureRepository(repository);
diff --git a/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestUtil.java b/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestUtil.java
index bc54175c3..b1812d16a 100644
--- a/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestUtil.java
+++ b/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestUtil.java
@@ -45,7 +45,7 @@ public class TestUtil {
@Override
public String toString() {
- return getClass().getName() + " [username=" + username + ",password=" + password + "]";
+ return getClass().getSimpleName() + " [username=" + username + ",password=" + password + "]";
}
}

Back to the top