Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Davis2015-11-20 23:42:17 +0000
committerSam Davis2016-01-23 00:59:49 +0000
commit27d4ded07550dbc873407d291b3fcbadf377786a (patch)
tree5a7c9aabbce4c5dcf6d5e429ea5a183706d40536 /org.eclipse.mylyn.tasks.ui.tests
parente5647f87f2d289148a4e5aa13ecb67d8f7546301 (diff)
downloadorg.eclipse.mylyn.tasks-27d4ded07550dbc873407d291b3fcbadf377786a.tar.gz
org.eclipse.mylyn.tasks-27d4ded07550dbc873407d291b3fcbadf377786a.tar.xz
org.eclipse.mylyn.tasks-27d4ded07550dbc873407d291b3fcbadf377786a.zip
485380: [api] connectors can search by task key
Change-Id: I512052246726ff51c1490b8b9f205c443fc8a562 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=485380
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui.tests')
-rw-r--r--org.eclipse.mylyn.tasks.ui.tests/src/org/eclipse/mylyn/internal/tasks/ui/OpenRepositoryTaskJobTest.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.ui.tests/src/org/eclipse/mylyn/internal/tasks/ui/OpenRepositoryTaskJobTest.java b/org.eclipse.mylyn.tasks.ui.tests/src/org/eclipse/mylyn/internal/tasks/ui/OpenRepositoryTaskJobTest.java
new file mode 100644
index 000000000..f06c9c476
--- /dev/null
+++ b/org.eclipse.mylyn.tasks.ui.tests/src/org/eclipse/mylyn/internal/tasks/ui/OpenRepositoryTaskJobTest.java
@@ -0,0 +1,33 @@
+/*******************************************************************************
+ * Copyright (c) 2016 Tasktop Technologies and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Tasktop Technologies - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.internal.tasks.ui;
+
+import static org.junit.Assert.assertEquals;
+
+import org.eclipse.mylyn.tasks.core.TaskRepository;
+import org.junit.Test;
+
+public class OpenRepositoryTaskJobTest {
+
+ @Test
+ public void setsNameFromTaskId() {
+ assertEquals("Opening repository task 123", new OpenRepositoryTaskJob("kind", "http://mock", "123",
+ "http://mock/123", null).getName());
+ }
+
+ @Test
+ public void setsNameFromTaskKey() {
+ assertEquals("Opening repository task 123", new OpenRepositoryTaskJob(
+ new TaskRepository("kind", "http://mock"), "123", "http://mock/123", null).getName());
+ }
+
+}

Back to the top