jglick@38
|
1 |
/*
|
jglick@38
|
2 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
jglick@38
|
3 |
*
|
jglick@38
|
4 |
* Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
|
jglick@38
|
5 |
*
|
jglick@38
|
6 |
* Oracle and Java are registered trademarks of Oracle and/or its affiliates.
|
jglick@38
|
7 |
* Other names may be trademarks of their respective owners.
|
jglick@38
|
8 |
*
|
jglick@38
|
9 |
* The contents of this file are subject to the terms of either the GNU
|
jglick@38
|
10 |
* General Public License Version 2 only ("GPL") or the Common
|
jglick@38
|
11 |
* Development and Distribution License("CDDL") (collectively, the
|
jglick@38
|
12 |
* "License"). You may not use this file except in compliance with the
|
jglick@38
|
13 |
* License. You can obtain a copy of the License at
|
jglick@38
|
14 |
* http://www.netbeans.org/cddl-gplv2.html
|
jglick@38
|
15 |
* or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
|
jglick@38
|
16 |
* specific language governing permissions and limitations under the
|
jglick@38
|
17 |
* License. When distributing the software, include this License Header
|
jglick@38
|
18 |
* Notice in each file and include the License file at
|
jglick@38
|
19 |
* nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
|
jglick@38
|
20 |
* particular file as subject to the "Classpath" exception as provided
|
jglick@38
|
21 |
* by Oracle in the GPL Version 2 section of the License file that
|
jglick@38
|
22 |
* accompanied this code. If applicable, add the following below the
|
jglick@38
|
23 |
* License Header, with the fields enclosed by brackets [] replaced by
|
jglick@38
|
24 |
* your own identifying information:
|
jglick@38
|
25 |
* "Portions Copyrighted [year] [name of copyright owner]"
|
jglick@38
|
26 |
*
|
jglick@38
|
27 |
* Contributor(s):
|
jglick@38
|
28 |
*
|
jglick@38
|
29 |
* The Original Software is NetBeans. The Initial Developer of the Original
|
jglick@38
|
30 |
* Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
|
jglick@38
|
31 |
* Microsystems, Inc. All Rights Reserved.
|
jglick@38
|
32 |
*
|
jglick@38
|
33 |
* If you wish your version of this file to be governed by only the CDDL
|
jglick@38
|
34 |
* or only the GPL Version 2, indicate your decision by adding
|
jglick@38
|
35 |
* "[Contributor] elects to include this software in this distribution
|
jglick@38
|
36 |
* under the [CDDL or GPL Version 2] license." If you do not indicate a
|
jglick@38
|
37 |
* single choice of license, a recipient has the option to distribute
|
jglick@38
|
38 |
* your version of this file under either the CDDL, the GPL Version 2 or
|
jglick@38
|
39 |
* to extend the choice of license to its licensees as provided above.
|
jglick@38
|
40 |
* However, if you add GPL Version 2 code and therefore, elected the GPL
|
jglick@38
|
41 |
* Version 2 license, then the option applies only if the new code is
|
jglick@38
|
42 |
* made subject to such option by the copyright holder.
|
jglick@38
|
43 |
*/
|
jglick@38
|
44 |
|
jglick@38
|
45 |
|
jglick@38
|
46 |
package org.netbeans.performance.uml.startup;
|
jglick@38
|
47 |
|
jglick@38
|
48 |
import java.io.IOException;
|
jglick@38
|
49 |
import org.netbeans.modules.performance.utilities.MeasureStartupTimeTestCase;
|
jglick@38
|
50 |
|
jglick@38
|
51 |
/**
|
jglick@38
|
52 |
* Measure startup time by org.netbeans.core.perftool.StartLog.
|
jglick@38
|
53 |
* Number of starts with new userdir is defined by property
|
jglick@38
|
54 |
* <br> <code> org.netbeans.performance.repeat.with.new.userdir </code>
|
jglick@38
|
55 |
* <br> and number of starts with old userdir is defined by property
|
jglick@38
|
56 |
* <br> <code> org.netbeans.performance.repeat </code>
|
jglick@38
|
57 |
* Run measurement defined number times, but forget first measured value,
|
jglick@38
|
58 |
* it's a attempt to have still the same testing conditions with
|
jglick@38
|
59 |
* loaded and cached files.
|
jglick@38
|
60 |
*
|
jglick@38
|
61 |
* @author mrkam@netbeans.org
|
jglick@38
|
62 |
*/
|
jglick@38
|
63 |
public class ComplexUMLDiagramStartupTest extends MeasureStartupTimeTestCase {
|
jglick@38
|
64 |
|
jglick@38
|
65 |
/** Define testcase
|
jglick@38
|
66 |
* @param testName name of the testcase
|
jglick@38
|
67 |
*/
|
jglick@38
|
68 |
public ComplexUMLDiagramStartupTest(String testName) {
|
jglick@38
|
69 |
super(testName);
|
jglick@38
|
70 |
}
|
jglick@38
|
71 |
|
jglick@38
|
72 |
/** Testing start of IDE with measurement of the startup time.
|
jglick@38
|
73 |
* @throws IOException
|
jglick@38
|
74 |
*/
|
jglick@38
|
75 |
public void testStartIDE() throws java.io.IOException {
|
jglick@38
|
76 |
measureComplexStartupTime("Startup Time with opened UML diagram");
|
jglick@38
|
77 |
}
|
jglick@38
|
78 |
|
jglick@38
|
79 |
|
jglick@38
|
80 |
}
|