01: /*******************************************************************************
02: * Copyright (c) 2005, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jface.tests.performance;
11:
12: import junit.framework.Test;
13: import junit.framework.TestSuite;
14:
15: import org.eclipse.ui.tests.performance.BasicPerformanceTest;
16: import org.eclipse.ui.tests.performance.UIPerformanceTestSetup;
17:
18: /**
19: * The JFacePerformanceSuite are the performance tests for JFace.
20: */
21: public class JFacePerformanceSuite extends TestSuite {
22:
23: //Some of these tests are very slow on 3.0
24: //Specify the minimum number of iterations
25: //and the time to drop down to a lower number
26:
27: public static int MAX_TIME = 10000;
28:
29: /**
30: * Returns the suite. This is required to use the JUnit Launcher.
31: */
32: public static Test suite() {
33: return new UIPerformanceTestSetup(new JFacePerformanceSuite());
34: }
35:
36: public JFacePerformanceSuite() {
37: super ();
38: addTest(new ListViewerRefreshTest("testRefresh"));
39: addTest(new ComboViewerRefreshTest("testRefreshSmall"));
40: addTest(new FastTableViewerRefreshTest("testRefreshMultiple"));
41: addTest(new FastTableViewerRefreshTest("testUpdateMultiple"));
42: addTest(new FastTreeTest("testAddTenTenTimes"));
43: addTest(new FastTreeTest("testAddFiftyTenTimes"));
44: addTest(new TreeTest("testAddThousand"));
45: addTest(new FastTreeTest("testAddHundredTenTimes",
46: BasicPerformanceTest.LOCAL));
47: addTest(new TreeTest("testAddThousandPreSort",
48: BasicPerformanceTest.GLOBAL));
49:
50: }
51: }
|