KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > javax > management > remote > compliance > RemoteJMXComplianceTestCase


1 /*
2  * Copyright (C) The MX4J Contributors.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the MX4J License version 1.0.
6  * See the terms of the MX4J License in the documentation provided with this software.
7  */

8
9 package test.javax.management.remote.compliance;
10
11 import java.io.File JavaDoc;
12 import java.io.IOException JavaDoc;
13 import java.net.MalformedURLException JavaDoc;
14 import java.util.jar.JarFile JavaDoc;
15
16 import test.javax.management.compliance.ComplianceTestCase;
17
18 /**
19  * @version $Revision: 1.4 $
20  */

21 public abstract class RemoteJMXComplianceTestCase extends ComplianceTestCase
22 {
23    public RemoteJMXComplianceTestCase(String JavaDoc s)
24    {
25       super(s);
26    }
27
28    protected ClassLoader JavaDoc createClassLoader() throws MalformedURLException JavaDoc
29    {
30       return createRemoteJMXRIWithTestsClassLoader();
31    }
32
33    protected JarFile JavaDoc loadJar() throws IOException JavaDoc
34    {
35       File JavaDoc rjmx = new File JavaDoc("dist/test/jmxremote.jar");
36       if (!rjmx.exists()) fail("JMX Remote jar is not available");
37       JarFile JavaDoc jar = new JarFile JavaDoc(rjmx);
38       return jar;
39    }
40
41    public void test_remote_JMXAuthenticator() throws Exception JavaDoc
42    {
43       check("remote.JMXAuthenticator");
44    }
45
46    public void test_remote_JMXConnectionNotification() throws Exception JavaDoc
47    {
48       check("remote.JMXConnectionNotification");
49    }
50
51    public void test_remote_JMXConnector() throws Exception JavaDoc
52    {
53       check("remote.JMXConnector");
54    }
55
56    public void test_remote_JMXConnectorFactory() throws Exception JavaDoc
57    {
58       check("remote.JMXConnectorFactory");
59    }
60
61    public void test_remote_JMXConnectorProvider() throws Exception JavaDoc
62    {
63       check("remote.JMXConnectorProvider");
64    }
65
66    public void test_remote_JMXConnectorServer() throws Exception JavaDoc
67    {
68       check("remote.JMXConnectorServer");
69    }
70
71    public void test_remote_JMXConnectorServerFactory() throws Exception JavaDoc
72    {
73       check("remote.JMXConnectorServerFactory");
74    }
75
76    public void test_remote_JMXConnectorServerMBean() throws Exception JavaDoc
77    {
78       check("remote.JMXConnectorServerMBean");
79    }
80
81    public void test_remote_JMXConnectorServerProvider() throws Exception JavaDoc
82    {
83       check("remote.JMXConnectorServerProvider");
84    }
85
86    public void test_remote_JMXPrincipal() throws Exception JavaDoc
87    {
88       check("remote.JMXPrincipal");
89    }
90
91    public void test_remote_JMXProviderException() throws Exception JavaDoc
92    {
93       check("remote.JMXProviderException");
94    }
95
96    public void test_remote_JMXServerErrorException() throws Exception JavaDoc
97    {
98       check("remote.JMXServerErrorException");
99    }
100
101    public void test_remote_JMXServiceURL() throws Exception JavaDoc
102    {
103       check("remote.JMXServiceURL");
104    }
105
106    public void test_remote_MBeanServerForwarder() throws Exception JavaDoc
107    {
108       check("remote.MBeanServerForwarder");
109    }
110
111    public void test_remote_NotificationResult() throws Exception JavaDoc
112    {
113       check("remote.NotificationResult");
114    }
115
116    public void test_remote_SubjectDelegationPermission() throws Exception JavaDoc
117    {
118       check("remote.SubjectDelegationPermission");
119    }
120
121    public void test_remote_TargetedNotification() throws Exception JavaDoc
122    {
123       check("remote.TargetedNotification");
124    }
125
126    public void test_remote_rmi_RMIConnection() throws Exception JavaDoc
127    {
128       check("remote.rmi.RMIConnection");
129    }
130
131    public void test_remote_rmi_RMIConnectionImpl() throws Exception JavaDoc
132    {
133       check("remote.rmi.RMIConnectionImpl");
134    }
135
136    public void test_remote_rmi_RMIConnector() throws Exception JavaDoc
137    {
138       check("remote.rmi.RMIConnector");
139    }
140
141    public void test_remote_rmi_RMIConnectorServer() throws Exception JavaDoc
142    {
143       check("remote.rmi.RMIConnectorServer");
144    }
145
146    public void test_remote_rmi_RMIIIOPServerImpl() throws Exception JavaDoc
147    {
148       check("remote.rmi.RMIIIOPServerImpl");
149    }
150
151    public void test_remote_rmi_RMIJRMPServerImpl() throws Exception JavaDoc
152    {
153       check("remote.rmi.RMIJRMPServerImpl");
154    }
155
156    public void test_remote_rmi_RMIServer() throws Exception JavaDoc
157    {
158       check("remote.rmi.RMIServer");
159    }
160
161    public void test_remote_rmi_RMIServerImpl() throws Exception JavaDoc
162    {
163       check("remote.rmi.RMIServerImpl");
164    }
165 }
166
Popular Tags