Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Davis2015-05-13 21:53:54 +0000
committerSam Davis2015-05-13 21:54:02 +0000
commitef0204a609d460c169c0bd5733babec23e48b008 (patch)
tree5575a7970b52b76c4ca32345c1c658827a9e3836
parentf34080f8b9904a4e4b9800c55d479fb56dec1418 (diff)
downloadorg.eclipse.mylyn.tasks-ef0204a609d460c169c0bd5733babec23e48b008.tar.gz
org.eclipse.mylyn.tasks-ef0204a609d460c169c0bd5733babec23e48b008.tar.xz
org.eclipse.mylyn.tasks-ef0204a609d460c169c0bd5733babec23e48b008.zip
fix non-determinism in testIncomingSupressed
It fails sometimes on Hudson. This may be due to other tests having put task data in the manager with the same id. Change-Id: Ic7f01701c8a3598bd082a6780df10ff35dc61371
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataManagerTest.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataManagerTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataManagerTest.java
index e0d18eb10..fd910b2e0 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataManagerTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataManagerTest.java
@@ -61,7 +61,7 @@ public class TaskDataManagerTest extends TestCase {
assertEquals(SynchronizationState.SYNCHRONIZED, task.getSynchronizationState());
}
- public void testIncomming() throws Exception {
+ public void testIncoming() throws Exception {
TaskTask task = TaskTestUtil.createMockTask("1");
task.setSynchronizationState(SynchronizationState.SYNCHRONIZED);
TaskData taskData = TaskTestUtil.createTaskData(taskRepository, "1");
@@ -71,10 +71,10 @@ public class TaskDataManagerTest extends TestCase {
assertEquals(SynchronizationState.INCOMING, task.getSynchronizationState());
}
- public void testIncommingSupressed() throws Exception {
- TaskTask task = TaskTestUtil.createMockTask("1");
+ public void testIncomingSupressed() throws Exception {
+ TaskTask task = TaskTestUtil.createMockTask("testIncomingSupressed");
task.setSynchronizationState(SynchronizationState.SYNCHRONIZED);
- TaskData taskData = TaskTestUtil.createTaskData(taskRepository, "1");
+ TaskData taskData = TaskTestUtil.createTaskData(taskRepository, "testIncomingSupressed");
TaskAttribute root = taskData.getRoot();
TaskAttribute version = root.createAttribute(TaskAttribute.VERSION);
version.getMetaData().defaults().setKind("default");
@@ -85,7 +85,7 @@ public class TaskDataManagerTest extends TestCase {
assertEquals("true", task.getAttribute(ITasksCoreConstants.ATTRIBUTE_TASK_SUPPRESS_INCOMING));
}
- public void testIncommingSupressedWithSave() throws Exception {
+ public void testIncomingSupressedWithSave() throws Exception {
TasksUi.getRepositoryManager().addRepository(taskRepository);
TaskTask task = TaskTestUtil.createMockTask("1");
task.setSynchronizationState(SynchronizationState.SYNCHRONIZED);
@@ -107,7 +107,7 @@ public class TaskDataManagerTest extends TestCase {
assertNull(task.getAttribute(ITasksCoreConstants.ATTRIBUTE_TASK_SUPPRESS_INCOMING));
}
- public void testIncommingSupressedWithRead() throws Exception {
+ public void testIncomingSupressedWithRead() throws Exception {
TasksUi.getRepositoryManager().addRepository(taskRepository);
TaskTask task = TaskTestUtil.createMockTask("1");
task.setSynchronizationState(SynchronizationState.SYNCHRONIZED);

Back to the top