Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2013-02-08 17:10:18 -0500
committerSteffen Pingel2013-04-12 17:42:46 -0400
commitdf08d9f31a149377edb6b7d96e8d034e8972e98a (patch)
treee568d8a9120ca954458678039d17009969dca742 /org.eclipse.mylyn.bugzilla.tests
parent9272712034cda71f10525c6fb0dec3a3be321adb (diff)
downloadorg.eclipse.mylyn.tasks-df08d9f31a149377edb6b7d96e8d034e8972e98a.tar.gz
org.eclipse.mylyn.tasks-df08d9f31a149377edb6b7d96e8d034e8972e98a.tar.xz
org.eclipse.mylyn.tasks-df08d9f31a149377edb6b7d96e8d034e8972e98a.zip
400370: ensure UI extensions are initialized when running UI tests
Change-Id: I390caf2f39d0806829b2678165921f34ec53a028 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=400370
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.tests')
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/ui/BugzillaRepositorySettingsPageTest.java2
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/ui/BugzillaTaskHyperlinkDetectorTest.java2
2 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/ui/BugzillaRepositorySettingsPageTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/ui/BugzillaRepositorySettingsPageTest.java
index e47f0e6a5..3af709b9a 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/ui/BugzillaRepositorySettingsPageTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/ui/BugzillaRepositorySettingsPageTest.java
@@ -33,6 +33,7 @@ import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
import org.eclipse.mylyn.internal.tasks.ui.wizards.EditRepositoryWizard;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.ui.TasksUi;
+import org.eclipse.mylyn.tests.util.TasksUiTestUtil;
import org.eclipse.ui.PlatformUI;
/**
@@ -54,6 +55,7 @@ public class BugzillaRepositorySettingsPageTest extends TestCase {
repository.setCredentials(AuthenticationType.REPOSITORY,
new AuthenticationCredentials(credentials.getUserName(), credentials.getPassword()), false);
TasksUiPlugin.getRepositoryManager().addRepository(repository);
+ TasksUiTestUtil.ensureTasksUiInitialization();
}
private BugzillaClient createClient(String hostUrl, String username, String password, String htAuthUser,
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/ui/BugzillaTaskHyperlinkDetectorTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/ui/BugzillaTaskHyperlinkDetectorTest.java
index 0bbb80513..8ad72fad5 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/ui/BugzillaTaskHyperlinkDetectorTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/ui/BugzillaTaskHyperlinkDetectorTest.java
@@ -29,6 +29,7 @@ import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
import org.eclipse.mylyn.tasks.ui.TaskHyperlink;
import org.eclipse.mylyn.tasks.ui.TasksUi;
+import org.eclipse.mylyn.tests.util.TasksUiTestUtil;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Shell;
@@ -152,6 +153,7 @@ public class BugzillaTaskHyperlinkDetectorTest extends TestCase {
super.setUp();
detector = new TaskHyperlinkDetector();
+ TasksUiTestUtil.ensureTasksUiInitialization();
repository1 = new TaskRepository(BugzillaCorePlugin.CONNECTOR_KIND, "repository_url1");
repository2 = new TaskRepository(BugzillaCorePlugin.CONNECTOR_KIND, "repository_url2");

Back to the top