KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > DataLoaderTests > DataObjectTest > RootSuite


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 DataLoaderTests.DataObjectTest;
21
22 import junit.framework.*;
23 import org.netbeans.junit.*;
24
25 public class RootSuite extends NbTestCase {
26
27     public RootSuite(java.lang.String JavaDoc testName) {
28         super(testName);
29     }
30
31     public static void main(java.lang.String JavaDoc[] args) {
32         junit.textui.TestRunner.run(suite());
33     }
34
35     private DataObjectTest T = null;
36
37     protected void setUp(){
38         T = new DataObjectTest("Dummy");
39         //now setting workdir - this class will write nothing into the logs, only the utility class should,
40
//however into location for this class
41
T.work = Manager.getWorkDirPath()+
42         java.io.File.separator + this.getClass().getName().replace('.',java.io.File.separatorChar)+
43         java.io.File.separator + getName();
44     }
45     
46     public static Test suite() {
47         TestSuite suite = new NbTestSuite("RootSuite");
48
49 /* suite.addTest(DataLoaderTests.DataObjectTest.others.AWTFormObject.AWTFormObject_others.suite());
50         suite.addTest(DataLoaderTests.DataObjectTest.others.ClassObject.ClassObject_others.suite());
51         suite.addTest(DataLoaderTests.DataObjectTest.others.HTMLObject.HTMLObject_others.suite());
52         suite.addTest(DataLoaderTests.DataObjectTest.others.ImageObject.ImageObject_others.suite());
53         suite.addTest(DataLoaderTests.DataObjectTest.others.JSPObject.JSPObject_others.suite());
54         suite.addTest(DataLoaderTests.DataObjectTest.others.JavaSourceObject.JavaSourceObject_others.suite());
55         suite.addTest(DataLoaderTests.DataObjectTest.others.Package.Package_others.suite());
56         suite.addTest(DataLoaderTests.DataObjectTest.others.SecurityJApplet.SecurityJApplet_others.suite());
57         suite.addTest(DataLoaderTests.DataObjectTest.others.SwingFormObject.SwingFormObject_others.suite());
58         suite.addTest(DataLoaderTests.DataObjectTest.others.TextualObject.TextualObject_others.suite());
59         suite.addTest(DataLoaderTests.DataObjectTest.others.URLObject.URLObject_others.suite());
60 */

61 /* suite.addTest(DataLoaderTests.DataObjectTest.modify.AWTFormObject.AWTFormObject_modify.suite());
62         suite.addTest(DataLoaderTests.DataObjectTest.modify.ClassObject.ClassObject_modify.suite());
63         suite.addTest(DataLoaderTests.DataObjectTest.modify.HTMLObject.HTMLObject_modify.suite());
64         suite.addTest(DataLoaderTests.DataObjectTest.modify.ImageObject.ImageObject_modify.suite());
65         suite.addTest(DataLoaderTests.DataObjectTest.modify.JSPObject.JSPObject_modify.suite());
66         suite.addTest(DataLoaderTests.DataObjectTest.modify.JavaSourceObject.JavaSourceObject_modify.suite());
67         suite.addTest(DataLoaderTests.DataObjectTest.modify.Package.Package_modify.suite());
68         suite.addTest(DataLoaderTests.DataObjectTest.modify.SecurityJApplet.SecurityJApplet_modify.suite());
69         suite.addTest(DataLoaderTests.DataObjectTest.modify.SwingFormObject.SwingFormObject_modify.suite());
70         suite.addTest(DataLoaderTests.DataObjectTest.modify.TextualObject.TextualObject_modify.suite());
71         suite.addTest(DataLoaderTests.DataObjectTest.modify.URLObject.URLObject_modify.suite());
72 */

73 /* suite.addTest(DataLoaderTests.DataObjectTest.manipulation.AWTFormObject.AWTFormObject_manipulation.suite());
74         suite.addTest(DataLoaderTests.DataObjectTest.manipulation.ClassObject.ClassObject_manipulation.suite());
75         suite.addTest(DataLoaderTests.DataObjectTest.manipulation.HTMLObject.HTMLObject_manipulation.suite());
76         suite.addTest(DataLoaderTests.DataObjectTest.manipulation.ImageObject.ImageObject_manipulation.suite());
77         suite.addTest(DataLoaderTests.DataObjectTest.manipulation.JSPObject.JSPObject_manipulation.suite());
78         suite.addTest(DataLoaderTests.DataObjectTest.manipulation.JavaSourceObject.JavaSourceObject_manipulation.suite());
79         //Package? - two dialogs pop up informing about package change
80         suite.addTest(DataLoaderTests.DataObjectTest.manipulation.Package.Package_manipulation.suite());
81         suite.addTest(DataLoaderTests.DataObjectTest.manipulation.SecurityJApplet.SecurityJApplet_manipulation.suite());
82         suite.addTest(DataLoaderTests.DataObjectTest.manipulation.SwingFormObject.SwingFormObject_manipulation.suite());
83         suite.addTest(DataLoaderTests.DataObjectTest.manipulation.TextualObject.TextualObject_manipulation.suite());
84         suite.addTest(DataLoaderTests.DataObjectTest.manipulation.URLObject.URLObject_manipulation.suite());
85 */

86 /* suite.addTest(DataLoaderTests.DataObjectTest.validity.AWTFormObject.AWTFormObject_validity.suite());
87         suite.addTest(DataLoaderTests.DataObjectTest.validity.ClassObject.ClassObject_validity.suite());
88         suite.addTest(DataLoaderTests.DataObjectTest.validity.HTMLObject.HTMLObject_validity.suite());
89         suite.addTest(DataLoaderTests.DataObjectTest.validity.ImageObject.ImageObject_validity.suite());
90         suite.addTest(DataLoaderTests.DataObjectTest.validity.JSPObject.JSPObject_validity.suite());
91         suite.addTest(DataLoaderTests.DataObjectTest.validity.JavaSourceObject.JavaSourceObject_validity.suite());
92         suite.addTest(DataLoaderTests.DataObjectTest.validity.Package.Package_validity.suite());
93         suite.addTest(DataLoaderTests.DataObjectTest.validity.SecurityJApplet.SecurityJApplet_validity.suite());
94         suite.addTest(DataLoaderTests.DataObjectTest.validity.SwingFormObject.SwingFormObject_validity.suite());
95         suite.addTest(DataLoaderTests.DataObjectTest.validity.TextualObject.TextualObject_validity.suite());
96         suite.addTest(DataLoaderTests.DataObjectTest.validity.URLObject.URLObject_validity.suite());
97 */

98 /* suite.addTest(DataLoaderTests.DataObjectTest.delegate.AWTFormObject.AWTFormObject_delegate.suite());
99         suite.addTest(DataLoaderTests.DataObjectTest.delegate.ClassObject.ClassObject_delegate.suite());
100         suite.addTest(DataLoaderTests.DataObjectTest.delegate.HTMLObject.HTMLObject_delegate.suite());
101         suite.addTest(DataLoaderTests.DataObjectTest.delegate.ImageObject.ImageObject_delegate.suite());
102         suite.addTest(DataLoaderTests.DataObjectTest.delegate.JSPObject.JSPObject_delegate.suite());
103         suite.addTest(DataLoaderTests.DataObjectTest.delegate.JavaSourceObject.JavaSourceObject_delegate.suite());
104         //Package? - two dialogs are thrown informing about change in package
105         suite.addTest(DataLoaderTests.DataObjectTest.delegate.Package.Package_delegate.suite());
106         suite.addTest(DataLoaderTests.DataObjectTest.delegate.SecurityJApplet.SecurityJApplet_delegate.suite());
107         suite.addTest(DataLoaderTests.DataObjectTest.delegate.SwingFormObject.SwingFormObject_delegate.suite());
108         suite.addTest(DataLoaderTests.DataObjectTest.delegate.TextualObject.TextualObject_delegate.suite());
109         suite.addTest(DataLoaderTests.DataObjectTest.delegate.URLObject.URLObject_delegate.suite());
110 */

111         return suite;
112     }
113     
114 }
115
Popular Tags