Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-06-07 14:31:13 -0400
committermkersten2007-06-07 14:31:13 -0400
commit1506e63612d14467ce1a53be38d625bde142a15d (patch)
tree629d9f276c12bfe33fa5027051b09b7c02a85858
parent464b52416a18c50d737625b2baab0817cb8671e6 (diff)
downloadorg.eclipse.mylyn.tasks-1506e63612d14467ce1a53be38d625bde142a15d.tar.gz
org.eclipse.mylyn.tasks-1506e63612d14467ce1a53be38d625bde142a15d.tar.xz
org.eclipse.mylyn.tasks-1506e63612d14467ce1a53be38d625bde142a15d.zip
NEW - bug 187602: Provide extension point for specifying duplicate detectors
https://bugs.eclipse.org/bugs/show_bug.cgi?id=187602
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/DuplicateDetetionTest.java17
1 files changed, 9 insertions, 8 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/DuplicateDetetionTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/DuplicateDetetionTest.java
index 52046d9c5..295f6db1f 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/DuplicateDetetionTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/DuplicateDetetionTest.java
@@ -23,6 +23,7 @@ import org.eclipse.mylar.tasks.core.Task;
import org.eclipse.mylar.tasks.core.TaskRepository;
import org.eclipse.mylar.tasks.ui.TasksUiPlugin;
import org.eclipse.mylar.tasks.ui.TasksUiUtil;
+import org.eclipse.mylar.tasks.ui.editors.AbstractNewRepositoryTaskEditor;
import org.eclipse.mylar.tasks.ui.editors.NewTaskEditorInput;
import org.eclipse.mylar.tasks.ui.editors.TaskEditor;
import org.eclipse.ui.IWorkbenchPage;
@@ -74,7 +75,7 @@ public class DuplicateDetetionTest extends TestCase {
TaskEditor taskEditor = (TaskEditor) page.getActiveEditor();
NewBugzillaTaskEditor editor = (NewBugzillaTaskEditor) taskEditor.getActivePageInstance();
- assertNull(editor.getStackTraceFromDescription());
+ assertNull(AbstractNewRepositoryTaskEditor.getStackTraceFromDescription(model.getDescription()));
editor.markDirty(false);
editor.close();
@@ -96,7 +97,7 @@ public class DuplicateDetetionTest extends TestCase {
TaskEditor taskEditor = (TaskEditor) page.getActiveEditor();
NewBugzillaTaskEditor editor = (NewBugzillaTaskEditor) taskEditor.getActivePageInstance();
- assertEquals(stackTrace, editor.getStackTraceFromDescription().trim());
+ assertEquals(stackTrace, AbstractNewRepositoryTaskEditor.getStackTraceFromDescription(model.getDescription()).trim());
editor.markDirty(false);
editor.close();
@@ -126,7 +127,7 @@ public class DuplicateDetetionTest extends TestCase {
TaskEditor taskEditor = (TaskEditor) page.getActiveEditor();
NewBugzillaTaskEditor editor = (NewBugzillaTaskEditor) taskEditor.getActivePageInstance();
- assertEquals(stackTrace, editor.getStackTraceFromDescription().trim());
+ assertEquals(stackTrace, AbstractNewRepositoryTaskEditor.getStackTraceFromDescription(model.getDescription()).trim());
editor.markDirty(false);
editor.close();
@@ -155,7 +156,7 @@ public class DuplicateDetetionTest extends TestCase {
TaskEditor taskEditor = (TaskEditor) page.getActiveEditor();
NewBugzillaTaskEditor editor = (NewBugzillaTaskEditor) taskEditor.getActivePageInstance();
- assertEquals(stackTrace, editor.getStackTraceFromDescription().trim());
+ assertEquals(stackTrace, AbstractNewRepositoryTaskEditor.getStackTraceFromDescription(model.getDescription()).trim());
editor.markDirty(false);
editor.close();
@@ -180,7 +181,7 @@ public class DuplicateDetetionTest extends TestCase {
TaskEditor taskEditor = (TaskEditor) page.getActiveEditor();
NewBugzillaTaskEditor editor = (NewBugzillaTaskEditor) taskEditor.getActivePageInstance();
- assertEquals(stackTrace, editor.getStackTraceFromDescription().trim());
+ assertEquals(stackTrace, AbstractNewRepositoryTaskEditor.getStackTraceFromDescription(model.getDescription()).trim());
editor.markDirty(false);
editor.close();
@@ -204,7 +205,7 @@ public class DuplicateDetetionTest extends TestCase {
TaskEditor taskEditor = (TaskEditor) page.getActiveEditor();
NewBugzillaTaskEditor editor = (NewBugzillaTaskEditor) taskEditor.getActivePageInstance();
- assertEquals(stackTrace, editor.getStackTraceFromDescription().trim());
+ assertEquals(stackTrace, AbstractNewRepositoryTaskEditor.getStackTraceFromDescription(model.getDescription()).trim());
editor.markDirty(false);
editor.close();
@@ -230,7 +231,7 @@ public class DuplicateDetetionTest extends TestCase {
TaskEditor taskEditor = (TaskEditor) page.getActiveEditor();
NewBugzillaTaskEditor editor = (NewBugzillaTaskEditor) taskEditor.getActivePageInstance();
- assertEquals(stackTrace, editor.getStackTraceFromDescription().trim());
+ assertEquals(stackTrace, AbstractNewRepositoryTaskEditor.getStackTraceFromDescription(model.getDescription()).trim());
editor.markDirty(false);
editor.close();
@@ -255,7 +256,7 @@ public class DuplicateDetetionTest extends TestCase {
TaskEditor taskEditor = (TaskEditor) page.getActiveEditor();
NewBugzillaTaskEditor editor = (NewBugzillaTaskEditor) taskEditor.getActivePageInstance();
- assertEquals(stackTrace, editor.getStackTraceFromDescription().trim());
+ assertEquals(stackTrace, AbstractNewRepositoryTaskEditor.getStackTraceFromDescription(model.getDescription()).trim());
editor.markDirty(false);
editor.close();

Back to the top