KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > gui > MeasureJ2EEActions


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package gui;
21
22
23 import gui.action.*;
24 import org.netbeans.junit.NbTestSuite;
25
26 /**
27  * Measure UI-RESPONSIVENES and WINDOW_OPENING.
28  *
29  * @author lmartinek@netbeans.org
30  */

31 public class MeasureJ2EEActions {
32     
33     public static void main(java.lang.String JavaDoc[] args) {
34         junit.textui.TestRunner.run(suite());
35     }
36     
37     public static NbTestSuite suite() {
38         NbTestSuite suite = new NbTestSuite();
39         
40     if (System.getProperty("onlyDeployment") != null && System.getProperty("onlyDeployment").equals("true")) {
41         suite.addTest(new Deploy("measureTime", "Deploy Enterprise Application"));
42     } else {
43
44             suite.addTest(new ExpandEJBNodesProjectsView("testExpandEjbProjectNode", "Expand EJB Project node"));
45             suite.addTest(new ExpandEJBNodesProjectsView("testExpandEjbNode", "Expand Enterprise Beans node"));
46     
47             suite.addTest(new OpenJ2EEFiles("testOpeningJava", "Open Java file"));
48             suite.addTest(new OpenJ2EEFiles("testOpeningSessionBean", "Open Session Bean file"));
49             suite.addTest(new OpenJ2EEFiles("testOpeningEntityBean", "Open Entity Bean file"));
50             suite.addTest(new OpenJ2EEFiles("testOpeningEjbJarXml", "Open ejb-jar.xml file"));
51             suite.addTest(new OpenJ2EEFiles("testOpeningSunEjbJarXml", "Open sun-ejb-jar.xml file"));
52             suite.addTest(new OpenJ2EEFiles("testOpeningApplicationXml", "Open application.xml file"));
53             suite.addTest(new OpenJ2EEFiles("testOpeningSunApplicationXml", "Open sun-application.xml file"));
54             
55             suite.addTest(new OpenJ2EEFilesWithOpenedEditor("testOpeningSessionBean", "Open Session Bean file if Editor opened"));
56             suite.addTest(new OpenJ2EEFilesWithOpenedEditor("testOpeningEntityBean", "Open Entity Bean file if Editor opened"));
57             suite.addTest(new OpenJ2EEFilesWithOpenedEditor("testOpeningEjbJarXml", "Open ejb-jar.xml file if Editor opened"));
58             suite.addTest(new OpenJ2EEFilesWithOpenedEditor("testOpeningSunEjbJarXml", "Open sun-ejb-jar.xml file if Editor opened"));
59             suite.addTest(new OpenJ2EEFilesWithOpenedEditor("testOpeningApplicationXml", "Open application.xml file if Editor opened"));
60             suite.addTest(new OpenJ2EEFilesWithOpenedEditor("testOpeningSunApplicationXml", "Open sun-application.xml file if Editor opened"));
61             
62             suite.addTest(new MeasureSessionBeanAction("testAddBusinessMethod", "Add business method to SB"));
63             suite.addTest(new MeasureEntityBeanAction("testAddBusinessMethod", "Add business method to EB"));
64             suite.addTest(new MeasureEntityBeanAction("testAddFinderMethod", "Add finder method to EB"));
65             suite.addTest(new MeasureEntityBeanAction("testAddSelectMethod", "Add select method to EB"));
66     
67             suite.addTest(new MeasureWebServiceAction("testAddOperation", "Add operation to WS"));
68     
69             suite.addTest(new MeasureCallEjbAction("measureTime", "Call EJB in session bean"));
70             
71             //suite.addTest(new Deploy("measureTime", "Deploy Enterprise Application"));
72

73             suite.addTest(new CreateNewFile("testCreateNewSessionBean", "Create new session bean"));
74             suite.addTest(new CreateNewFile("testCreateNewEntityBean", "Create new entity bean"));
75             suite.addTest(new CreateNewFile("testCreateNewWebService", "Create new web service"));
76     
77             suite.addTest(new CreateJ2EEProject("testCreateEnterpriseApplicationProject", "Create Enterprise Application projects"));
78             suite.addTest(new CreateJ2EEProject("testCreateStandaloneEnterpriseApplicationProject", "Create standalone Enterprise Application project"));
79             suite.addTest(new CreateJ2EEProject("testCreateEJBModuleProject", "Create EJB Module project"));
80         }
81         
82         return suite;
83     }
84     
85 }
86
Popular Tags