KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > management > Tests


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23 package com.sun.enterprise.management;
24
25
26 import java.util.List JavaDoc;
27 import java.util.ArrayList JavaDoc;
28
29 import com.sun.appserv.management.util.misc.TypeCast;
30
31 import com.sun.enterprise.management.TestTemplateTest;
32 import com.sun.enterprise.management.DomainRootTest;
33 import com.sun.enterprise.management.GenericsTest;
34
35 import com.sun.enterprise.management.base.*;
36 import com.sun.enterprise.management.config.*;
37 import com.sun.enterprise.management.monitor.*;
38 import com.sun.enterprise.management.client.*;
39 import com.sun.enterprise.management.support.*;
40 import com.sun.enterprise.management.helper.*;
41 import com.sun.enterprise.management.deploy.*;
42 import com.sun.enterprise.management.j2ee.*;
43 import com.sun.enterprise.management.ext.logging.*;
44 import com.sun.enterprise.management.ext.wsmgmt.*;
45 import com.sun.enterprise.management.ext.offline.*;
46 import com.sun.enterprise.management.util.misc.*;
47
48
49
50 /**
51     <b>The place</b> to put list any new test; the official list
52     of tests. The file amxtest.classes is also used, but since
53     it may be inadvertantly modified, this is the official list
54     of tests.
55  */

56 public class Tests
57 {
58     private Tests() {}
59     
60     private static final Class JavaDoc<junit.framework.TestCase>[] TestClasses =
61         TypeCast.asArray( new Class JavaDoc[]
62     {
63         TestTemplateTest.class, // ensure that the template one works OK, too!
64

65         
66         // these tests are standalone and do not require a
67
// server connection
68
GenericsTest.class,
69         AMXDebugTest.class,
70         SetUtilTest.class,
71         ThrowableMapperTest.class,
72         OfflineDottedNamesRegistryTest.class,
73         OfflineDottedNamePrefixesTest.class,
74         LogQueryEntryImplTest.class,
75         LogQueryResultImplTest.class,
76         ParamNameMapperTest.class,
77         CircularListTest.class,
78         SerializableTest.class,
79         StatisticTest.class,
80         CoverageInfoTest.class,
81
82         // Tests that follow require a server connection
83
//AppserverConnectionSourceTest.class,
84
RunMeFirstTest.class,
85         
86         ComSunAppservMonitorTest.class,
87         ProxyTest.class,
88         ProxyFactoryTest.class,
89         AMXTest.class,
90         GetSetAttributeTest.class,
91         ContainerTest.class,
92         GenericTest.class,
93         PropertiesAccessTest.class,
94         SystemPropertiesAccessTest.class,
95
96         LogMBeanTest.class,
97         LoggingTest.class,
98         LoggingHelperTest.class,
99         StatefulLoggingHelperTest.class,
100
101         DomainRootTest.class,
102         UploadDownloadMgrTest.class,
103         BulkAccessTest.class,
104         QueryMgrTest.class,
105         NotificationEmitterServiceTest.class,
106         NotificationServiceMgrTest.class,
107         NotificationServiceTest.class,
108         MiscTest.class,
109
110         MonitorTest.class,
111         JMXMonitorMgrTest.class,
112
113         J2EETest.class,
114         ServletTest.class,
115
116         DeploymentProgressTest.class,
117         DeploymentSourceTest.class,
118         DeploymentStatusTest.class,
119         DeploymentMgrTest.class,
120
121         DanglingRefsTest.class,
122         ConfigRunMeFirstTest.class,
123         DescriptionTest.class,
124         EnabledTest.class,
125         LibrariesTest.class,
126         RefHelperTest.class,
127         ListenerTest.class,
128         ComSunAppservConfigTest.class,
129         DomainConfigTest.class,
130         ConfigConfigTest.class,
131         MessageSecurityConfigTest.class,
132         StandaloneServerConfigTest.class,
133         ClusteredServerConfigTest.class,
134         NodeAgentConfigTest.class,
135         CustomMBeanConfigTest.class,
136         LifecycleModuleConfigTest.class,
137         ReferencesTest.class,
138         HTTPServiceConfigTest.class,
139         HTTPListenerConfigTest.class,
140         ClusterConfigTest.class,
141         SSLConfigTest.class,
142         JMXConnectorConfigTest.class,
143         IIOPListenerConfigTest.class,
144         HTTPListenerConfigTest.class,
145         AuditModuleConfigTest.class,
146         AuthRealmConfigTest.class,
147         JavaConfigTest.class,
148         ProfilerConfigTest.class,
149         VirtualServerConfigTest.class,
150         JACCProviderConfigTest.class,
151         AdminObjectResourceConfigTest.class,
152         JDBCResourceConfigTest.class,
153         MailResourceConfigTest.class,
154         ConnectorConnectionPoolConfigTest.class,
155         JDBCConnectionPoolConfigTest.class,
156         PersistenceManagerFactoryResourceConfigTest.class,
157         JNDIResourceConfigTest.class,
158         ThreadPoolConfigTest.class,
159         LBTest.class,
160         ManagementRulesConfigTest.class,
161         SecurityMapConfigTest.class,
162         ConnectorConnectionPoolConfigTest.class,
163         ResourceAdapterConfigTest.class,
164         CustomResourceConfigTest.class,
165         ConnectorServiceConfigTest.class,
166         ManagementRulesConfigTest.class,
167         DiagnosticServiceConfigTest.class,
168
169         PerformanceTest.class,
170         CallFlowMonitorTest.class,
171         RunMeLastTest.class,
172     } );
173     
174         public static List JavaDoc<Class JavaDoc<junit.framework.TestCase>>
175     getTestClasses()
176     {
177         final List JavaDoc<Class JavaDoc<junit.framework.TestCase>> classes =
178             new ArrayList JavaDoc<Class JavaDoc<junit.framework.TestCase>>();
179         
180         for( int i = 0; i < TestClasses.length; ++i )
181         {
182             final Class JavaDoc<junit.framework.TestCase> testClass = TestClasses[i];
183             
184             classes.add( testClass );
185         }
186
187         return( classes );
188     }
189     
190 };
191
192
Popular Tags