Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2013-03-17 11:53:33 -0400
committerGerrit Code Review @ Eclipse.org2013-04-04 16:13:53 -0400
commitf347119a4bf8b66da847fe33b6cf876ca0589d65 (patch)
tree667b6cc334e9513480e425e8fb3a8a778bad5d13
parent4fab82832b62aba26c4416885174adbfd4c68596 (diff)
downloadorg.eclipse.mylyn.tasks-f347119a4bf8b66da847fe33b6cf876ca0589d65.tar.gz
org.eclipse.mylyn.tasks-f347119a4bf8b66da847fe33b6cf876ca0589d65.tar.xz
org.eclipse.mylyn.tasks-f347119a4bf8b66da847fe33b6cf876ca0589d65.zip
403571: fix failing Task tests
Change-Id: I76d3d606c2a0a44653a78232e626a6e3afe48453 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=403571
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataStore.java2
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoryCredentialsTest.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataStore.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataStore.java
index 20ec91a39..cd6b24f34 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataStore.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataStore.java
@@ -137,7 +137,7 @@ public class TaskDataStore {
} catch (SAXException e) {
// bug 268456: if reading fails, try again using a different XML version
if (e.getMessage() != null
- && (e.getMessage().contains("invalid XML character") || e.getMessage().contains("Character reference \"&#"))) { //$NON-NLS-1$ //$NON-NLS-2$
+ && (e.getMessage().contains("invalid XML character") || e.getMessage().contains(" \"&#"))) { //$NON-NLS-1$ //$NON-NLS-2$
return readStateInternal(file, true);
} else {
throw e;
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoryCredentialsTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoryCredentialsTest.java
index a281e5b87..dcec4ed99 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoryCredentialsTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoryCredentialsTest.java
@@ -50,7 +50,7 @@ public class TaskRepositoryCredentialsTest extends TestCase {
password(AuthenticationType.REPOSITORY);
// test old API
- TaskRepository taskRepository = new TaskRepository("kind", "url");
+ TaskRepository taskRepository = new TaskRepository("kind", "http://url");
taskRepository.setCredentials(AuthenticationType.REPOSITORY, new AuthenticationCredentials("user", "pwd"), true);
assertEquals("user", taskRepository.getUserName());
assertEquals("pwd", taskRepository.getPassword());

Back to the top