001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: package gui;
043:
044: import gui.action.OpenServletFile;
045: import gui.action.OpenServletFileWithOpenedEditor;
046: import gui.action.OpenWebFiles;
047: import gui.action.OpenWebFilesWithOpenedEditor;
048: import org.netbeans.junit.NbTestCase;
049: import org.netbeans.junit.NbTestSuite;
050:
051: /**
052: * Measure UI-RESPONSIVENES and WINDOW_OPENING.
053: *
054: * @author mmirilovic@netbeans.org
055: */
056: public class MeasureWebDialogs extends NbTestCase {
057:
058: private MeasureWebDialogs(String name) {
059: super (name);
060: }
061:
062: public static void main(java.lang.String[] args) {
063: junit.textui.TestRunner.run(suite());
064: }
065:
066: public static NbTestSuite suite() {
067: NbTestSuite suite = new NbTestSuite();
068:
069: suite.addTest(new OpenServletFile("testOpeningJavaFile",
070: "Open Java file"));
071: suite.addTest(new OpenServletFile("testOpeningServletFile",
072: "Open Servlet file"));
073: //suite.addTest(new OpenServletFile("testOpeningServletFile", "Open Servlet file II"));
074: suite.addTest(new OpenWebFiles("testOpeningWebXmlFile",
075: "Open web.xml file"));
076: suite.addTest(new OpenWebFiles("testOpeningContextXmlFile",
077: "Open context.xml file"));
078: suite.addTest(new OpenWebFiles("testOpeningJSPFile",
079: "Open JSP file"));
080: //suite.addTest(new OpenWebFiles("testOpeningBigJSPFile", "Open Big JSP file"));
081: suite.addTest(new OpenWebFiles("testOpeningHTMLFile",
082: "Open HTML file"));
083: suite.addTest(new OpenWebFiles("testOpeningTagFile",
084: "Open Tag file"));
085: suite.addTest(new OpenWebFiles("testOpeningTldFile",
086: "Open TLD file"));
087:
088: suite.addTest(new OpenServletFileWithOpenedEditor(
089: "testOpeningJavaFile",
090: "Open Java file if Editor opened"));
091: suite.addTest(new OpenServletFileWithOpenedEditor(
092: "testOpeningServletFile",
093: "Open Servlet file if Editor opened"));
094: suite.addTest(new OpenWebFilesWithOpenedEditor(
095: "testOpeningWebXmlFile",
096: "Open web.xml file if Editor opened"));
097: suite.addTest(new OpenWebFilesWithOpenedEditor(
098: "testOpeningContextXmlFile",
099: "Open context.xml file if Editor opened"));
100: suite
101: .addTest(new OpenWebFilesWithOpenedEditor(
102: "testOpeningJSPFile",
103: "Open JSP file if Editor opened"));
104: //suite.addTest(new OpenWebFilesWithOpenedEditor("testOpeningBigJSPFile", "Open Big JSP file if Editor opened"));
105: suite.addTest(new OpenWebFilesWithOpenedEditor(
106: "testOpeningHTMLFile",
107: "Open HTML file if Editor opened"));
108: suite
109: .addTest(new OpenWebFilesWithOpenedEditor(
110: "testOpeningTagFile",
111: "Open Tag file if Editor opened"));
112: suite
113: .addTest(new OpenWebFilesWithOpenedEditor(
114: "testOpeningTldFile",
115: "Open TLD file if Editor opened"));
116:
117: return suite;
118: }
119:
120: }
|