| author | Steffen Pingel | 2012-03-01 17:40:19 (EST) |
|---|---|---|
| committer | Steffen Pingel | 2012-03-01 17:40:19 (EST) |
| commit | 0cf388b16e09230ebd16d29701896300f9cb39a5 (patch) (side-by-side diff) | |
| tree | b5ff0b22f4d786e330e065ac976c7b0f48ed112f | |
| parent | 70fc9b6089fc46c90e30b355a9bfa53c942e6178 (diff) | |
| download | org.eclipse.mylyn.tasks-0cf388b16e09230ebd16d29701896300f9cb39a5.zip org.eclipse.mylyn.tasks-0cf388b16e09230ebd16d29701896300f9cb39a5.tar.gz org.eclipse.mylyn.tasks-0cf388b16e09230ebd16d29701896300f9cb39a5.tar.bz2 | |
RESOLVED - bug 372971: fix test initialization
https://bugs.eclipse.org/bugs/show_bug.cgi?id=372971
Change-Id: I0defd8a49a6b335ea98fe773f4112f53c1eedf86
| -rw-r--r-- | org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/ui/BugzillaTaskEditorTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/ui/BugzillaTaskEditorTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/ui/BugzillaTaskEditorTest.java index ee7b999..0d39543 100644 --- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/ui/BugzillaTaskEditorTest.java +++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/ui/BugzillaTaskEditorTest.java @@ -15,6 +15,7 @@ package org.eclipse.mylyn.bugzilla.tests.ui; import junit.framework.TestCase; import org.eclipse.mylyn.bugzilla.tests.support.BugzillaFixture; +import org.eclipse.mylyn.commons.sdk.util.UiTestUtil; import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal; import org.eclipse.mylyn.tasks.core.TaskMapping; import org.eclipse.mylyn.tasks.core.TaskRepository; @@ -33,13 +34,12 @@ public class BugzillaTaskEditorTest extends TestCase { @Override protected void setUp() throws Exception { - BugzillaFixture.current(); - repository = BugzillaFixture.current().repository(); + repository = BugzillaFixture.current().singleRepository(); } @Override protected void tearDown() throws Exception { - PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().closeAllEditors(false); + UiTestUtil.closeAllEditors(); } /** |

