Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2006-03-31 19:20:38 -0500
committermkersten2006-03-31 19:20:38 -0500
commitdf0f0b50e845976e38fb4d1d0a706235d1aaa7e4 (patch)
treeeae09737c918c5717d1e111d473cfb1c186a8f90
parent1272ec5b4ccc59577913e144131597ec4f511670 (diff)
downloadorg.eclipse.mylyn-df0f0b50e845976e38fb4d1d0a706235d1aaa7e4.tar.gz
org.eclipse.mylyn-df0f0b50e845976e38fb4d1d0a706235d1aaa7e4.tar.xz
org.eclipse.mylyn-df0f0b50e845976e38fb4d1d0a706235d1aaa7e4.zip
Progress on: 133448: form based bug editor improvements
https://bugs.eclipse.org/bugs/show_bug.cgi?id=133448
-rw-r--r--org.eclipse.mylyn.tests/META-INF/MANIFEST.MF3
-rw-r--r--org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/AllIntegrationTests.java1
-rw-r--r--org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/ExtensionPointInitializationTest.java31
3 files changed, 34 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tests/META-INF/MANIFEST.MF b/org.eclipse.mylyn.tests/META-INF/MANIFEST.MF
index 8c79345..3a3556e 100644
--- a/org.eclipse.mylyn.tests/META-INF/MANIFEST.MF
+++ b/org.eclipse.mylyn.tests/META-INF/MANIFEST.MF
@@ -29,5 +29,6 @@ Require-Bundle: org.junit,
org.eclipse.jdt.core,
org.eclipse.mylar.ide,
org.eclipse.mylar.ide.tests,
- org.eclipse.mylar.monitor
+ org.eclipse.mylar.monitor,
+ org.eclipse.ui.forms
Bundle-RequiredExecutionEnvironment: J2SE-1.5
diff --git a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/AllIntegrationTests.java b/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/AllIntegrationTests.java
index fb42cc5..41193f3 100644
--- a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/AllIntegrationTests.java
+++ b/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/AllIntegrationTests.java
@@ -26,6 +26,7 @@ public class AllIntegrationTests {
MylarStatusHandler.setDumpErrors(true);
// $JUnit-BEGIN$
+ suite.addTestSuite(ExtensionPointInitializationTest.class);
suite.addTestSuite(ChangeDataDirTest.class);
// $JUnit-END$
return suite;
diff --git a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/ExtensionPointInitializationTest.java b/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/ExtensionPointInitializationTest.java
new file mode 100644
index 0000000..0ccc333
--- /dev/null
+++ b/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/ExtensionPointInitializationTest.java
@@ -0,0 +1,31 @@
+/*******************************************************************************
+ * Copyright (c) 2004 - 2006 University Of British Columbia 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:
+ * University Of British Columbia - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylar.tests.integration;
+
+import junit.framework.TestCase;
+
+import org.eclipse.mylar.internal.bugs.java.JavaStackTraceHyperlinkAdapter;
+import org.eclipse.mylar.internal.bugzilla.ui.editor.AbstractBugEditor;
+import org.eclipse.mylar.provisional.tasklist.MylarTaskListPlugin;
+import org.eclipse.ui.forms.events.IHyperlinkListener;
+
+/**
+ * @author Mik Kersten
+ */
+public class ExtensionPointInitializationTest extends TestCase {
+
+ public void testBugzillaHyperlinkDetector() {
+ IHyperlinkListener listener = MylarTaskListPlugin.getDefault().getTaskHyperlinkListeners().get(AbstractBugEditor.HYPERLINK_TYPE_JAVA);
+ assertTrue(listener instanceof JavaStackTraceHyperlinkAdapter);
+ }
+
+}

Back to the top