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.menu.WebProjectsViewPopupMenu;
045: import gui.menu.WebRuntimeViewPopupMenu;
046: import org.netbeans.junit.NbTestCase;
047: import org.netbeans.junit.NbTestSuite;
048:
049: /**
050: * Measure UI-RESPONSIVENES and WINDOW_OPENING.
051: *
052: * @author mmirilovic@netbeans.org
053: */
054: public class MeasureWebMenus extends NbTestCase {
055:
056: private MeasureWebMenus(String name) {
057: super (name);
058: }
059:
060: public static void main(java.lang.String[] args) {
061: junit.textui.TestRunner.run(suite());
062: }
063:
064: public static NbTestSuite suite() {
065: NbTestSuite suite = new NbTestSuite();
066: suite.addTest(new WebProjectsViewPopupMenu(
067: "testProjectNodePopupMenuProjects",
068: "Project node popup in Projects View"));
069: //suite.addTest(new WebProjectsViewPopupMenu("testProjectNodePopupMenuProjects",
070: //"Project node popup in Projects View II"));
071: suite.addTest(new WebProjectsViewPopupMenu(
072: "testSourcePackagesPopupMenuProjects",
073: "Source Packages node popup in Projects View"));
074: suite.addTest(new WebProjectsViewPopupMenu(
075: "testPackagePopupMenuProjects",
076: "Package node popup in Projects View"));
077: suite.addTest(new WebProjectsViewPopupMenu(
078: "testServletPopupMenuProjects",
079: "Servlet node popup in Projects View"));
080: suite.addTest(new WebProjectsViewPopupMenu(
081: "testWebPagesPopupMenuProjects",
082: "Web Pages node popup in Projects View"));
083: suite.addTest(new WebProjectsViewPopupMenu(
084: "testJspFilePopupMenuProjects",
085: "JSP File node popup in Projects View"));
086: suite.addTest(new WebProjectsViewPopupMenu(
087: "testWebInfPopupMenuProjects",
088: "WEB-INF node popup in Projects View"));
089: suite.addTest(new WebProjectsViewPopupMenu(
090: "testMetaInfPopupMenuProjects",
091: "META-INF node popup in Projects View"));
092: suite.addTest(new WebProjectsViewPopupMenu(
093: "testWebXmlFilePopupMenuProjects",
094: "Web.xml node popup in Projects View"));
095: suite.addTest(new WebProjectsViewPopupMenu(
096: "testContextXmlFilePopupMenuProjects",
097: "Context.xml node popup in Projects View"));
098: suite.addTest(new WebProjectsViewPopupMenu(
099: "testHtmlFilePopupMenuProjects",
100: "HTML node popup in Projects View"));
101: suite.addTest(new WebProjectsViewPopupMenu(
102: "testTagFilePopupMenuProjects",
103: "Tag file node popup in Projects View"));
104: suite.addTest(new WebProjectsViewPopupMenu(
105: "testTldPopupMenuProjects",
106: "TLD node popup in Projects View"));
107: suite.addTest(new WebRuntimeViewPopupMenu(
108: "testServerRegistryPopupMenuRuntime",
109: "Servers node popup in Runtime View"));
110: /* suite.addTest(new WebRuntimeViewPopupMenu("testTomcatPopupMenuRuntime",
111: "Tomcat node popup in Runtime View"));
112: suite.addTest(new WebRuntimeViewPopupMenu("testWebModulesPopupMenuRuntime",
113: "Tomcat's Web Modules node popup in Runtime View"));
114: suite.addTest(new WebRuntimeViewPopupMenu("testWebModulePopupMenuRuntime",
115: "Tomcat's one Web Module node popup in Runtime View"));
116: */
117: return suite;
118: }
119:
120: }
|