KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > validation > IDECommitValidation


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-2007 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package validation;
21
22 import org.netbeans.jellytools.JellyTestCase;
23 import org.netbeans.junit.NbTestSuite;
24
25 /**
26  * Overall sanity check suite for IDE before commit.<br>
27  * Look at IDEValidation.java for test specification and implementation.
28  *
29  * @author Jiri.Skrivanek@sun.com
30  */

31 public class IDECommitValidation extends JellyTestCase {
32     
33     
34     /** Need to be defined because of JUnit */
35     public IDECommitValidation(String JavaDoc name) {
36         super(name);
37     }
38     
39     public static NbTestSuite suite() {
40         NbTestSuite suite = new NbTestSuite();
41         suite.addTest(new IDEValidation("testMainMenu"));
42         suite.addTest(new IDEValidation("testHelp"));
43         suite.addTest(new IDEValidation("testOptions"));
44         suite.addTest(new IDEValidation("testNewProject"));
45         // sample project must exist before testShortcuts
46
suite.addTest(new IDEValidation("testShortcuts"));
47         suite.addTest(new IDEValidation("testNewFile"));
48         // TODO: There is no CVS top level menu anymore
49
// suite.addTest(new IDEValidation("testCVSLite"));
50
suite.addTest(new IDEValidation("testProjectsView"));
51         suite.addTest(new IDEValidation("testFilesView"));
52         suite.addTest(new IDEValidation("testEditor"));
53         suite.addTest(new IDEValidation("testBuildAndRun"));
54         suite.addTest(new IDEValidation("testDebugging"));
55         //temporarily disabling because of retouche merge:
56
// suite.addTest(new IDEValidation("testJUnit"));
57
// suite.addTest(new IDEValidation("testXML"));
58
// not in commit suite because it needs net connectivity
59
//suite.addTest(new IDEValidation("testUpdateCenter"));
60
suite.addTest(new IDEValidation("testDb"));
61         suite.addTest(new IDEValidation("testWindowSystem"));
62         suite.addTest(new IDEValidation("testSeparateWindowsMode"));
63         suite.addTest(new IDEValidation("testModuleInstallation"));
64         return suite;
65     }
66     
67     /** Use for execution inside IDE */
68     public static void main(java.lang.String JavaDoc[] args) {
69         // run whole suite
70
junit.textui.TestRunner.run(suite());
71         // run only selected test case
72
//junit.textui.TestRunner.run(new IDEValidation("testMainMenu"));
73
}
74 }
75
Popular Tags