KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > DataLoaderTests > DataObjectTest > Validity


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 Validity extends NbTestCase {
26
27     public Validity(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 testAWTFormValidity() throws Exception {
47         new DataLoaderTests.DataObjectTest.validity.AWTFormObject.AWTFormObject_validity("testDOValidity").testDOValidity();
48     }
49     public void testClassValidity() throws Exception {
50         new DataLoaderTests.DataObjectTest.validity.ClassObject.ClassObject_validity("testDOValidity").testDOValidity();
51     }
52    */

53     public void testHTMLValidity() throws Exception JavaDoc {
54         new DataLoaderTests.DataObjectTest.validity.HTMLObject.HTMLObject_validity("testDOValidity").testDOValidity();
55     }
56     public void testImageValidity() throws Exception JavaDoc {
57         new DataLoaderTests.DataObjectTest.validity.ImageObject.ImageObject_validity("testDOValidity").testDOValidity();
58     }
59     public void testJSPValidity() throws Exception JavaDoc {
60         new DataLoaderTests.DataObjectTest.validity.JSPObject.JSPObject_validity("testDOValidity").testDOValidity();
61     }
62     /*
63     public void testJavaFormValidity() throws Exception {
64         new DataLoaderTests.DataObjectTest.validity.JavaSourceObject.JavaSourceObject_validity("testDOValidity").testDOValidity();
65     }*/

66     /*
67      * removed test. The Refarctoring shows dialog :(
68      *
69     public void testPackageValidity() throws Exception {
70         new DataLoaderTests.DataObjectTest.validity.Package.Package_validity("testDOValidity").testDOValidity();
71     }
72      
73     public void testSecurityJAppletValidity() throws Exception {
74         new DataLoaderTests.DataObjectTest.validity.SecurityJApplet.SecurityJApplet_validity("testDOValidity").testDOValidity();
75     }
76     public void testSwingFormValidity() throws Exception {
77         new DataLoaderTests.DataObjectTest.validity.SwingFormObject.SwingFormObject_validity("testDOValidity").testDOValidity();
78     }
79      */

80     public void testTextualValidity() throws Exception JavaDoc {
81         new DataLoaderTests.DataObjectTest.validity.TextualObject.TextualObject_validity("testDOValidity").testDOValidity();
82     }
83     public void testURLValidity() throws Exception JavaDoc {
84         new DataLoaderTests.DataObjectTest.validity.URLObject.URLObject_validity("testDOValidity").testDOValidity();
85     }
86
87     public static Test suite() {
88         NbTestSuite suite = new NbTestSuite(Validity.class);
89         return suite;
90     }
91   
92 }
93
Popular Tags