KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > DataLoaderTests > DataObjectTest > Modify


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 Modify extends NbTestCase {
26
27     public Modify(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 testAWTFormModify() throws Exception JavaDoc {
47         new DataLoaderTests.DataObjectTest.modify.AWTFormObject.AWTFormObject_modify("testDOModify").testDOModify();
48     }
49     public void testClassModify() throws Exception JavaDoc {
50         new DataLoaderTests.DataObjectTest.modify.ClassObject.ClassObject_modify("testDOModify").testDOModify();
51     }
52     public void testHTMLModify() throws Exception JavaDoc {
53         new DataLoaderTests.DataObjectTest.modify.HTMLObject.HTMLObject_modify("testDOModify").testDOModify();
54     }
55     public void testImageModify() throws Exception JavaDoc {
56         new DataLoaderTests.DataObjectTest.modify.ImageObject.ImageObject_modify("testDOModify").testDOModify();
57     }
58     public void testJSPModify() throws Exception JavaDoc {
59         new DataLoaderTests.DataObjectTest.modify.JSPObject.JSPObject_modify("testDOModify").testDOModify();
60     }
61     public void testJavaFormModify() throws Exception JavaDoc {
62         new DataLoaderTests.DataObjectTest.modify.JavaSourceObject.JavaSourceObject_modify("testDOModify").testDOModify();
63     }
64     /*
65      * test removed because refactoring shows some dialogs
66      *
67     public void testPackageModify() throws Exception {
68         new DataLoaderTests.DataObjectTest.modify.Package.Package_modify("testDOModify").testDOModify();
69     }*/

70     public void testSecurityJAppletModify() throws Exception JavaDoc {
71         new DataLoaderTests.DataObjectTest.modify.SecurityJApplet.SecurityJApplet_modify("testDOModify").testDOModify();
72     }
73     public void testSwingFormModify() throws Exception JavaDoc {
74         new DataLoaderTests.DataObjectTest.modify.SwingFormObject.SwingFormObject_modify("testDOModify").testDOModify();
75     }
76     public void testTextualModify() throws Exception JavaDoc {
77         new DataLoaderTests.DataObjectTest.modify.TextualObject.TextualObject_modify("testDOModify").testDOModify();
78     }
79     public void testURLModify() throws Exception JavaDoc {
80         new DataLoaderTests.DataObjectTest.modify.URLObject.URLObject_modify("testDOModify").testDOModify();
81     }
82
83     public static Test suite() {
84         NbTestSuite suite = new NbTestSuite(Modify.class);
85         return suite;
86     }
87   
88 }
89
Popular Tags