Source Code Cross Referenced for MeasureActions.java in  » IDE-Netbeans » performance » gui » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » performance » gui 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


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 org.netbeans.junit.NbTestSuite;
045:        import gui.action.*;
046:
047:        /**
048:         * Measure UI-RESPONSIVENES and WINDOW_OPENING.
049:         *
050:         * @author  mmirilovic@netbeans.org
051:         */
052:        public class MeasureActions {
053:
054:            public static NbTestSuite suite() {
055:                NbTestSuite suite = new NbTestSuite();
056:
057:                suite.addTest(new ExpandNodesProjectsView(
058:                        "testExpandProjectNode", "Expand Project node"));
059:                suite.addTest(new ExpandNodesProjectsView(
060:                        "testExpandSourcePackagesNode",
061:                        "Expand Source Packages node"));
062:                suite.addTest(new ExpandNodesProjectsView(
063:                        "testExpandFolderWith50JavaFiles",
064:                        "Expand folder with 50 java files"));
065:                suite.addTest(new ExpandNodesProjectsView(
066:                        "testExpandFolderWith100JavaFiles",
067:                        "Expand folder with 100 java files"));
068:                suite.addTest(new ExpandNodesProjectsView(
069:                        "testExpandFolderWith100TxtFiles",
070:                        "Expand folder with 100 txt files"));
071:                suite.addTest(new ExpandNodesProjectsView(
072:                        "testExpandFolderWith100XmlFiles",
073:                        "Expand folder with 100 xml files"));
074:
075:                suite.addTest(new SwitchToFile("testSwitchJavaToJava",
076:                        "Switch from Java file to Java file"));
077:                suite.addTest(new SwitchToFile("testSwitchJavaToJSP",
078:                        "Switch from Java file to JSP file"));
079:                suite.addTest(new SwitchToFile("testSwitchJSPToJSP",
080:                        "Switch from JSP file to JSP file"));
081:                suite.addTest(new SwitchToFile("testSwitchJSPToXML",
082:                        "Switch from JSP file to XML file"));
083:                suite.addTest(new SwitchToFile("testSwitchXMLToJSP",
084:                        "Switch from XML file to JSP file"));
085:
086:                suite.addTest(new SwitchView("testSwitchToProjects",
087:                        "Switch to Projects view"));
088:                suite.addTest(new SwitchView("testSwitchToFiles",
089:                        "Switch to Files view"));
090:                suite.addTest(new SwitchView("testSwitchToServices",
091:                        "Switch to Services view"));
092:                suite.addTest(new SwitchView("testSwitchToFavorites",
093:                        "Switch to Favorite Folders view"));
094:
095:                suite.addTest(new OpenFiles("testOpening20kBJavaFile",
096:                        "Open Java file (20kB)"));
097:                suite.addTest(new OpenFilesWithOpenedEditor(
098:                        "testOpening20kBJavaFile",
099:                        "Open Java file (20kB) if Editor opened"));
100:
101:                suite.addTest(new OpenFiles("testOpening20kBTxtFile",
102:                        "Open Txt file (20kB)"));
103:                suite.addTest(new OpenFilesWithOpenedEditor(
104:                        "testOpening20kBTxtFile",
105:                        "Open Txt file (20kB) if Editor opened"));
106:
107:                suite.addTest(new OpenFiles("testOpening20kBXmlFile",
108:                        "Open Xml file (20kB)"));
109:                suite.addTest(new OpenFilesWithOpenedEditor(
110:                        "testOpening20kBXmlFile",
111:                        "Open Xml file (20kB) if Editor opened"));
112:
113:                //TODO no tomcat - see issue 101104         suite.addTest(new OpenJspFile("testOpening20kBJSPFile", "Open JSP file"));
114:                //TODO no tomcat - see issue 101104         suite.addTest(new OpenJspFileWithOpenedEditor("testOpening20kBJSPFile", "Open JSP file if Editor opened"));
115:
116:                suite.addTest(new OpenFilesNoCloneableEditor(
117:                        "testOpening20kBPropertiesFile",
118:                        "Open Properties file (20kB)"));
119:                suite.addTest(new OpenFilesNoCloneableEditorWithOpenedEditor(
120:                        "testOpening20kBPropertiesFile",
121:                        "Open Properties file (20kB) if Editor opened"));
122:
123:                suite.addTest(new OpenFormFile("testOpening20kBFormFile",
124:                        "Open Form file (20kB)"));
125:                suite.addTest(new OpenFormFileWithOpenedEditor(
126:                        "testOpening20kBFormFile",
127:                        "Open Form file (20kB) if Editor opened"));
128:
129:                //TODO 6.0 still causes a lot of failures in the following tests        suite.addTest(new PasteInEditor("measureTime", "Paste in the editor"));
130:                suite.addTest(new PageUpPageDownInEditor("testPageUp",
131:                        "Press Page Up in the editor"));
132:                suite.addTest(new PageUpPageDownInEditor("testPageDown",
133:                        "Press Page Down in the editor"));
134:
135:                suite.addTest(new JavaCompletionInEditor("measureTime",
136:                        "Invoke Code Completion dialog in Editor"));
137:
138:                suite.addTest(new TypingInEditor("testJavaEditor",
139:                        "Type a character in Java Editor"));
140:                suite.addTest(new TypingInEditor("testTxtEditor",
141:                        "Type a character in Txt Editor"));
142:                //TODO no tomcat - see issue 101104        suite.addTest(new TypingInEditor("testJspEditor", "Type a character in Jsp Editor"));
143:
144:                suite.addTest(new CloseEditor("testClosing20kBJavaFile",
145:                        "Close Java file (20kB)"));
146:                suite.addTest(new CloseEditor("testClosing20kBFormFile",
147:                        "Close Form file (20kB)"));
148:
149:                //TODO 5.0 still causes a lot of failures in the following tests        suite.addTest(new CloseAllEditors("testClosingAllJavaFiles", "Close All Documents if 10 Java files opened"));
150:
151:                suite.addTest(new CloseEditorTab("measureTime",
152:                        "Close on tab from Editor window"));
153:
154:                suite.addTest(new CloseEditorModified("measureTime",
155:                        "Close modified Java file"));
156:
157:                suite.addTest(new SaveModifiedFile("measureTime",
158:                        "Save modified Java file"));
159:
160:                suite.addTest(new SelectCategoriesInNewFile(
161:                        "testSelectGUIForms", "Select GUI Forms in New File"));
162:                suite.addTest(new SelectCategoriesInNewFile("testSelectXML",
163:                        "Select XML in New File"));
164:                suite.addTest(new SelectCategoriesInNewFile("testSelectOther",
165:                        "Select Other in New File"));
166:
167:                //TODO    suite.addTest(new OpenProject("testOpenJavaApplicationProject", "Open Java Application project"));
168:                //TODO    suite.addTest(new OpenProject("testOpenJavaLibraryProject", "Open Java Library project"));
169:                //TODO    suite.addTest(new OpenProject("testOpenWebApplicationProject", "Open Web Application project"));
170:                //TODO    suite.addTest(new OpenProject("testOpenJavaProjectWithExistingSources", "Open Java Project with Existing sources"));
171:
172:                suite.addTest(new AddToFavorites("testAddJavaFile",
173:                        "Add to Favorites Java file"));
174:
175:                suite.addTest(new CreateProject(
176:                        "testCreateJavaApplicationProject",
177:                        "Create Java Application project"));
178:                suite.addTest(new CreateProject("testCreateJavaLibraryProject",
179:                        "Create Java Library project"));
180:                //TODO no tomcat - see issue 101104        
181:                suite.addTest(new CreateProject(
182:                        "testCreateWebApplicationProject",
183:                        "Create Web Application project"));
184:
185:                //TODO    suite.addTest(new CreateProject("testCreateJavaProjectWithExistingSources", "Create Java Project with Existing sources"));
186:
187:                suite.addTest(new CreateNBProject("testCreateModuleProject",
188:                        "Create Module Project"));
189:                suite.addTest(new CreateNBProject(
190:                        "testCreateModuleSuiteProject",
191:                        "Create Module Suite Project"));
192:
193:                //TODO 6.0 still causes a lot of failures in the following tests        suite.addTest(new DeleteFolder("testDeleteFolderWith50JavaFiles", "Delete folder with 50 java files"));
194:                //TODO 6.0 still causes a lot of failures in the following tests        suite.addTest(new DeleteFolder("testDeleteFolderWith100JavaFiles", "Delete folder with 100 java files"));
195:
196:                /*
197:                suite.addTest(new RefactorFindUsages("measureTime", "Refactor find usages"));
198:
199:                
200:                //TODO    suite.addTest(new CloseProject("testCloseJavaApplicationProject", "Close Java Application project"));
201:                
202:                //TODO    suite.addTest(new SetMainProject("testSetMainProject", "Set Main project"));
203:                
204:                //TODO    suite.addTest(new BuildProject("testBuildHelloWorld", "Build Hello World project"));
205:                //TODO    suite.addTest(new CleanAndBuildProject("testCleanAndBuildHelloWorld", "Clean and Build Hello World project"));
206:                //TODO    suite.addTest(new RunProject("testRunHelloWorld", "Run Hello World project"));
207:                
208:                //TODO    suite.addTest(new CreateNewJavaFile("testCreateNewJavaFile", "Create New Java file"));
209:                //TODO    suite.addTest(new CreateNewJavaFileIfEditorOpened("testCreateNewJavaFileIfEditorOpened", "Create New Java file if Editor opened"));
210:                //TODO    suite.addTest(new CreateNewPackage("testCreateNewPackage", "Create New Package"));
211:                
212:                //TODO    suite.addTest(new SelectDocumentIn("testSelectDocumentInProjects", "Select Document In Projects"));
213:                //TODO    suite.addTest(new SelectDocumentIn("testSelectDocumentInFiles", "Select Document In Files"));
214:                //TODO    suite.addTest(new SelectDocumentIn("testSelectDocumentInAllFiles", "Select Document In All Files"));
215:                
216:                //TODO    suite.addTest(new SwitchToFile("testSwitchEditorJavaToJava", "Switch editor Java to Java file"));
217:                //TODO    suite.addTest(new SwitchToFile("testSwitchEditorJavaToForm", "Switch editor Java to Form file"));
218:                //TODO    suite.addTest(new SwitchToFile("testSwitchEditorFormToJava", "Switch editor Form to Java file"));
219:                
220:                //TODO    suite.addTest(new SwitchView("testSwitchToProjects", "Switch to Projects view"));
221:                //TODO    suite.addTest(new SwitchView("testSwitchToFiles", "Switch to Files view"));
222:                //TODO    suite.addTest(new SwitchView("testSwitchToAllFiles", "Switch to All Files view"));
223:                //TODO    suite.addTest(new SwitchView("testSwitchToFavoriteFolders", "Switch to Favorite Folders view"));
224:                
225:                //TODO    suite.addTest(new SlidingWindows("testMinimizeProjects", "Minimize Projects window"));
226:                //TODO    suite.addTest(new SlidingWindows("testSlideProjects", "Slide Projects window"));
227:                //TODO    suite.addTest(new SlidingWindows("testAutoHideProjects", "Auto Hide Projects window"));
228:                
229:                
230:                
231:                //TODO    suite.addTest(new CompileFile("testCompileFile", "Compile Java file"));
232:                
233:                //TODO    suite.addTest(new AddToFavorites("testAddToFavoritesFolders", "Add to Favorites folders"));
234:                 */
235:
236:                suite.addTest(new OpenFiles("testGC", "GC of opened editors"));
237:                suite.addTest(new CreateProject("testGC",
238:                        "GC of created projects"));
239:
240:                return suite;
241:            }
242:
243:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.