Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCurtis D'Entremont2006-12-15 18:44:45 +0000
committerCurtis D'Entremont2006-12-15 18:44:45 +0000
commite58e8cd84817a80a7754ded22a21d4e6221b65aa (patch)
tree88fbe57d6d46bcbfda6b0d946452de3cb833ed1c /org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/performance
parent87ea951bbc8aed17a9b663a73eb37efe365514e4 (diff)
downloadeclipse.platform.ua-e58e8cd84817a80a7754ded22a21d4e6221b65aa.tar.gz
eclipse.platform.ua-e58e8cd84817a80a7754ded22a21d4e6221b65aa.tar.xz
eclipse.platform.ua-e58e8cd84817a80a7754ded22a21d4e6221b65aa.zip
fixed intro performance test to use fixed data set
Diffstat (limited to 'org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/performance')
-rw-r--r--org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/performance/OpenIntroTest.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/performance/OpenIntroTest.java b/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/performance/OpenIntroTest.java
index 8c8533dd1..a8acf423d 100644
--- a/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/performance/OpenIntroTest.java
+++ b/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/performance/OpenIntroTest.java
@@ -16,6 +16,7 @@ import junit.framework.TestSuite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.test.performance.Dimension;
import org.eclipse.test.performance.PerformanceTestCase;
+import org.eclipse.ua.tests.plugin.UserAssistanceTestPlugin;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.internal.intro.impl.model.loader.ExtensionPointManager;
@@ -38,6 +39,20 @@ public class OpenIntroTest extends PerformanceTestCase {
protected void setUp() throws Exception {
super.setUp();
closeIntro();
+ // test extensions filter by this system property
+ System.setProperty("org.eclipse.ua.tests.property.isTesting", "true"); //$NON-NLS-1$ //$NON-NLS-2$
+ ExtensionPointManager.getInst().setExtensionFilter(UserAssistanceTestPlugin.getPluginId());
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.test.performance.PerformanceTestCase#tearDown()
+ */
+ protected void tearDown() throws Exception {
+ super.tearDown();
+ closeIntro();
+ // test extensions filter by this system property
+ System.setProperty("org.eclipse.ua.tests.property.isTesting", null); //$NON-NLS-1$ //$NON-NLS-2$
+ ExtensionPointManager.getInst().setExtensionFilter(null);
}
public void testOpenIntro() throws Exception {

Back to the top