KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > test > j2ee > multiview > MultiViewTest


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 org.netbeans.test.j2ee.multiview;
21
22 import junit.framework.Test;
23 import junit.textui.TestRunner;
24 import org.netbeans.jellytools.JellyTestCase;
25 import org.netbeans.junit.NbTestCase;
26 import org.netbeans.junit.NbTestSuite;
27
28 /**
29  *
30  * @author blaha
31  */

32 public class MultiViewTest extends JellyTestCase{
33
34     public MultiViewTest(String JavaDoc testName) {
35         super(testName);
36     }
37
38     protected void setUp() throws Exception JavaDoc {
39         super.setUp();
40     }
41
42     protected void tearDown() throws Exception JavaDoc {
43     }
44
45     public static Test suite() {
46         NbTestSuite suite = new NbTestSuite();
47         // Overview module panel
48
suite.addTest(new EjbModuleTest("testOpenProject"));
49         suite.addTest(new EjbModuleTest("testRenameDisplayName"));
50         suite.addTest(new EjbModuleTest("testChangeDescription"));
51         suite.addTest(new EjbModuleTest("testAddSmallIcon"));
52         suite.addTest(new EjbModuleTest("testAddLargeIcon"));
53         
54         //Bean details and CMP panel
55
suite.addTest(new EBDetailsAndCMPFieldPanelTest("testOpenProject"));
56         suite.addTest(new EBDetailsAndCMPFieldPanelTest("testEBName"));
57         suite.addTest(new EBDetailsAndCMPFieldPanelTest("testDescription"));
58         suite.addTest(new EBDetailsAndCMPFieldPanelTest("testSmallIcon"));
59         suite.addTest(new EBDetailsAndCMPFieldPanelTest("testLargeIcon"));
60         suite.addTest(new EBDetailsAndCMPFieldPanelTest("testRevertChanges"));
61         
62         suite.addTest(new EBDetailsAndCMPFieldPanelTest("testExistingCMPFields"));
63         suite.addTest(new EBDetailsAndCMPFieldPanelTest("testAddNewCMPField"));
64         suite.addTest(new EBDetailsAndCMPFieldPanelTest("testChangeCMPFieldName"));
65         suite.addTest(new EBDetailsAndCMPFieldPanelTest("testChangeCMPMethods"));
66         suite.addTest(new EBDetailsAndCMPFieldPanelTest("testChangeCMPType"));
67         suite.addTest(new EBDetailsAndCMPFieldPanelTest("testChangeCMPDescription"));
68         suite.addTest(new EBDetailsAndCMPFieldPanelTest("testDeleteCMPField"));
69          
70         // Entity General Panel
71
suite.addTest(new EBGeneralAndClassPanelTest("testOpenProject"));
72         suite.addTest(new EBGeneralAndClassPanelTest("testEntityNodeName"));
73         suite.addTest(new EBGeneralAndClassPanelTest("testEntityName"));
74         suite.addTest(new EBGeneralAndClassPanelTest("testEntityPersistanceType"));
75         suite.addTest(new EBGeneralAndClassPanelTest("testEntityAbstractName"));
76         suite.addTest(new EBGeneralAndClassPanelTest("testEntityPKField"));
77         suite.addTest(new EBGeneralAndClassPanelTest("testEntityPKClass"));
78         suite.addTest(new EBGeneralAndClassPanelTest("testChangeReentrant"));
79         suite.addTest(new EBGeneralAndClassPanelTest("testChangePKMultiple"));
80         suite.addTest(new EBGeneralAndClassPanelTest("testChangePK"));
81         
82   
83         // Interfaces and classes panel
84
suite.addTest(new EBGeneralAndClassPanelTest("testBeanClassName"));
85         suite.addTest(new EBGeneralAndClassPanelTest("testLocalInterfaceCheckBox"));
86         suite.addTest(new EBGeneralAndClassPanelTest("testLocalHomeIName"));
87         suite.addTest(new EBGeneralAndClassPanelTest("testLocalIName"));
88         suite.addTest(new EBGeneralAndClassPanelTest("testRemoteHomeIName"));
89         suite.addTest(new EBGeneralAndClassPanelTest("testRemoteIName"));
90         suite.addTest(new EBGeneralAndClassPanelTest("testRemoteInterfaceCheckBox"));
91         suite.addTest(new EBGeneralAndClassPanelTest("testEnableRemoteI"));
92         suite.addTest(new EBGeneralAndClassPanelTest("testDisableRemoteI"));
93         
94         
95         return suite;
96     }
97     
98     /** Use for execution inside IDE */
99     public static void main(java.lang.String JavaDoc[] args) {
100         // run only selected test case
101
TestRunner.run(suite());
102     }
103     
104 }
105
Popular Tags