Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCurtis D'Entremont2006-12-14 00:02:21 +0000
committerCurtis D'Entremont2006-12-14 00:02:21 +0000
commit19e5588a8f145b7fe15fe79ead1aff6f5df31d6d (patch)
tree2204d08ec10b3f2d432346f1022c838bd1e39b07 /org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/performance
parent20f0b14cfdefb822f1f0a58f6c616996f6b3cab2 (diff)
downloadeclipse.platform.ua-19e5588a8f145b7fe15fe79ead1aff6f5df31d6d.tar.gz
eclipse.platform.ua-19e5588a8f145b7fe15fe79ead1aff6f5df31d6d.tar.xz
eclipse.platform.ua-19e5588a8f145b7fe15fe79ead1aff6f5df31d6d.zip
improve performance tests
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/AllIntroPerformanceTests.java34
-rw-r--r--org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/performance/OpenIntroTest.java12
2 files changed, 10 insertions, 36 deletions
diff --git a/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/performance/AllIntroPerformanceTests.java b/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/performance/AllIntroPerformanceTests.java
deleted file mode 100644
index d0b42064c..000000000
--- a/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/performance/AllIntroPerformanceTests.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2006 IBM Corporation 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:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.ua.tests.intro.performance;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-/*
- * Tests help performance (automated).
- */
-public class AllIntroPerformanceTests extends TestSuite {
-
- /*
- * Returns the entire test suite.
- */
- public static Test suite() {
- return new AllIntroPerformanceTests();
- }
-
- /*
- * Constructs a new performance test suite.
- */
- public AllIntroPerformanceTests() {
- addTest(OpenIntroTest.suite());
- }
-}
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 d9c2f1a72..ccee11596 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
@@ -29,22 +29,30 @@ public class OpenIntroTest extends PerformanceTestCase {
public static Test suite() {
return new TestSuite(OpenIntroTest.class);
}
+
+ /* (non-Javadoc)
+ * @see org.eclipse.test.performance.PerformanceTestCase#setUp()
+ */
+ protected void setUp() throws Exception {
+ super.setUp();
+ closeIntro();
+ }
public void testOpenIntro() throws Exception {
tagAsSummary("Open welcome", Dimension.ELAPSED_PROCESS);
// warm-up
for (int i=0;i<3;++i) {
- closeIntro();
openIntro();
+ closeIntro();
}
// run the tests
for (int i=0;i<20;++i) {
- closeIntro();
startMeasuring();
openIntro();
stopMeasuring();
+ closeIntro();
}
commitMeasurements();

Back to the top