Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2014-02-19 14:16:43 -0500
committerFrank Becker2014-02-19 14:16:43 -0500
commit928b4a7b3d1915240ed9662ca5a5f21e6cfac22d (patch)
tree441267c64676d02070801dcb287b7bd0f178ac35 /connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.tests
parentfaa7ae94c2e9ec77b0af6d8eae9700edfdd32e7e (diff)
downloadorg.eclipse.mylyn.tasks-928b4a7b3d1915240ed9662ca5a5f21e6cfac22d.tar.gz
org.eclipse.mylyn.tasks-928b4a7b3d1915240ed9662ca5a5f21e6cfac22d.tar.xz
org.eclipse.mylyn.tasks-928b4a7b3d1915240ed9662ca5a5f21e6cfac22d.zip
278474: perform migration of credentials to secure storage
Change-Id: I48de32745466777fcb95ae4e4d4eecc6692d54c1 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=278474
Diffstat (limited to 'connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.tests')
-rw-r--r--connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.tests/src/org/eclipse/mylyn/bugzilla/rest/tests/TckFixture.java7
-rw-r--r--connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.tests/src/org/eclipse/mylyn/bugzilla/rest/tests/tck/ValidationTest.java2
2 files changed, 7 insertions, 2 deletions
diff --git a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.tests/src/org/eclipse/mylyn/bugzilla/rest/tests/TckFixture.java b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.tests/src/org/eclipse/mylyn/bugzilla/rest/tests/TckFixture.java
index 5752089b2..21ac642a4 100644
--- a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.tests/src/org/eclipse/mylyn/bugzilla/rest/tests/TckFixture.java
+++ b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.tests/src/org/eclipse/mylyn/bugzilla/rest/tests/TckFixture.java
@@ -9,6 +9,8 @@ public class TckFixture extends AbstractTestFixture {
private final FixtureConfiguration config;
+ protected TaskRepository repository;
+
public TckFixture(FixtureConfiguration config) {
super("org.eclipse.mylyn.bugzilla.rest", config);
this.config = config;
@@ -25,7 +27,10 @@ public class TckFixture extends AbstractTestFixture {
}
public TaskRepository repository() {
- return new TaskRepository(getConnectorKind(), getRepositoryUrl());
+ if (repository == null) {
+ repository = new TaskRepository(getConnectorKind(), getRepositoryUrl());
+ }
+ return repository;
}
@SuppressWarnings("restriction")
diff --git a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.tests/src/org/eclipse/mylyn/bugzilla/rest/tests/tck/ValidationTest.java b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.tests/src/org/eclipse/mylyn/bugzilla/rest/tests/tck/ValidationTest.java
index 57c0e17c6..2e1b7fb9d 100644
--- a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.tests/src/org/eclipse/mylyn/bugzilla/rest/tests/tck/ValidationTest.java
+++ b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.tests/src/org/eclipse/mylyn/bugzilla/rest/tests/tck/ValidationTest.java
@@ -42,7 +42,7 @@ public class ValidationTest extends AbstractTckTest {
org.eclipse.mylyn.commons.net.AuthenticationCredentials invalideCreds = new org.eclipse.mylyn.commons.net.AuthenticationCredentials(
"invalidateCredentials", "invalidateCredentials");
repository.setCredentials(org.eclipse.mylyn.commons.net.AuthenticationType.REPOSITORY, invalideCreds, true);
- fixture().connector().validateRepository(fixture().repository(), monitor);
+ fixture().connector().validateRepository(repository, monitor);
}
}

Back to the top