KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > DataLoaderTests > DataObjectTest > Others


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 Others extends NbTestCase {
26
27     public Others(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 void testAWTFormOthers() throws Exception JavaDoc {
47         new DataLoaderTests.DataObjectTest.others.AWTFormObject.AWTFormObject_others("testDOOthers").testDOOthers();
48     }
49     public void testClassOthers() throws Exception JavaDoc {
50         new DataLoaderTests.DataObjectTest.others.ClassObject.ClassObject_others("testDOOthers").testDOOthers();
51     }
52     public void testHTMLOthers() throws Exception JavaDoc {
53         new DataLoaderTests.DataObjectTest.others.HTMLObject.HTMLObject_others("testDOOthers").testDOOthers();
54     }
55     public void testImageOthers() throws Exception JavaDoc {
56         new DataLoaderTests.DataObjectTest.others.ImageObject.ImageObject_others("testDOOthers").testDOOthers();
57     }
58     public void testJSPOthers() throws Exception JavaDoc {
59         new DataLoaderTests.DataObjectTest.others.JSPObject.JSPObject_others("testDOOthers").testDOOthers();
60     }
61     public void testJavaFormOthers() throws Exception JavaDoc {
62         new DataLoaderTests.DataObjectTest.others.JavaSourceObject.JavaSourceObject_others("testDOOthers").testDOOthers();
63     }
64     public void testPackageOthers() throws Exception JavaDoc {
65         new DataLoaderTests.DataObjectTest.others.Package.Package_others("testDOOthers").testDOOthers();
66     }
67     public void testSecurityJAppletOthers() throws Exception JavaDoc {
68         new DataLoaderTests.DataObjectTest.others.SecurityJApplet.SecurityJApplet_others("testDOOthers").testDOOthers();
69     }
70     public void testSwingFormOthers() throws Exception JavaDoc {
71         new DataLoaderTests.DataObjectTest.others.SwingFormObject.SwingFormObject_others("testDOOthers").testDOOthers();
72     }
73     public void testTextualOthers() throws Exception JavaDoc {
74         new DataLoaderTests.DataObjectTest.others.TextualObject.TextualObject_others("testDOOthers").testDOOthers();
75     }
76     public void testURLOthers() throws Exception JavaDoc {
77         new DataLoaderTests.DataObjectTest.others.URLObject.URLObject_others("testDOOthers").testDOOthers();
78     }
79
80     public static Test suite() {
81         NbTestSuite suite = new NbTestSuite(Others.class);
82         return suite;
83     }
84   
85 }
86
Popular Tags