001: /*
002: * Copyright (C) The MX4J Contributors.
003: * All rights reserved.
004: *
005: * This software is distributed under the terms of the MX4J License version 1.0.
006: * See the terms of the MX4J License in the documentation provided with this software.
007: */
008:
009: package test.javax.management.remote.compliance;
010:
011: import java.io.File;
012: import java.io.IOException;
013: import java.net.MalformedURLException;
014: import java.util.jar.JarFile;
015:
016: import test.javax.management.compliance.ComplianceTestCase;
017:
018: /**
019: * @version $Revision: 1.4 $
020: */
021: public abstract class RemoteJMXComplianceTestCase extends
022: ComplianceTestCase {
023: public RemoteJMXComplianceTestCase(String s) {
024: super (s);
025: }
026:
027: protected ClassLoader createClassLoader()
028: throws MalformedURLException {
029: return createRemoteJMXRIWithTestsClassLoader();
030: }
031:
032: protected JarFile loadJar() throws IOException {
033: File rjmx = new File("dist/test/jmxremote.jar");
034: if (!rjmx.exists())
035: fail("JMX Remote jar is not available");
036: JarFile jar = new JarFile(rjmx);
037: return jar;
038: }
039:
040: public void test_remote_JMXAuthenticator() throws Exception {
041: check("remote.JMXAuthenticator");
042: }
043:
044: public void test_remote_JMXConnectionNotification()
045: throws Exception {
046: check("remote.JMXConnectionNotification");
047: }
048:
049: public void test_remote_JMXConnector() throws Exception {
050: check("remote.JMXConnector");
051: }
052:
053: public void test_remote_JMXConnectorFactory() throws Exception {
054: check("remote.JMXConnectorFactory");
055: }
056:
057: public void test_remote_JMXConnectorProvider() throws Exception {
058: check("remote.JMXConnectorProvider");
059: }
060:
061: public void test_remote_JMXConnectorServer() throws Exception {
062: check("remote.JMXConnectorServer");
063: }
064:
065: public void test_remote_JMXConnectorServerFactory()
066: throws Exception {
067: check("remote.JMXConnectorServerFactory");
068: }
069:
070: public void test_remote_JMXConnectorServerMBean() throws Exception {
071: check("remote.JMXConnectorServerMBean");
072: }
073:
074: public void test_remote_JMXConnectorServerProvider()
075: throws Exception {
076: check("remote.JMXConnectorServerProvider");
077: }
078:
079: public void test_remote_JMXPrincipal() throws Exception {
080: check("remote.JMXPrincipal");
081: }
082:
083: public void test_remote_JMXProviderException() throws Exception {
084: check("remote.JMXProviderException");
085: }
086:
087: public void test_remote_JMXServerErrorException() throws Exception {
088: check("remote.JMXServerErrorException");
089: }
090:
091: public void test_remote_JMXServiceURL() throws Exception {
092: check("remote.JMXServiceURL");
093: }
094:
095: public void test_remote_MBeanServerForwarder() throws Exception {
096: check("remote.MBeanServerForwarder");
097: }
098:
099: public void test_remote_NotificationResult() throws Exception {
100: check("remote.NotificationResult");
101: }
102:
103: public void test_remote_SubjectDelegationPermission()
104: throws Exception {
105: check("remote.SubjectDelegationPermission");
106: }
107:
108: public void test_remote_TargetedNotification() throws Exception {
109: check("remote.TargetedNotification");
110: }
111:
112: public void test_remote_rmi_RMIConnection() throws Exception {
113: check("remote.rmi.RMIConnection");
114: }
115:
116: public void test_remote_rmi_RMIConnectionImpl() throws Exception {
117: check("remote.rmi.RMIConnectionImpl");
118: }
119:
120: public void test_remote_rmi_RMIConnector() throws Exception {
121: check("remote.rmi.RMIConnector");
122: }
123:
124: public void test_remote_rmi_RMIConnectorServer() throws Exception {
125: check("remote.rmi.RMIConnectorServer");
126: }
127:
128: public void test_remote_rmi_RMIIIOPServerImpl() throws Exception {
129: check("remote.rmi.RMIIIOPServerImpl");
130: }
131:
132: public void test_remote_rmi_RMIJRMPServerImpl() throws Exception {
133: check("remote.rmi.RMIJRMPServerImpl");
134: }
135:
136: public void test_remote_rmi_RMIServer() throws Exception {
137: check("remote.rmi.RMIServer");
138: }
139:
140: public void test_remote_rmi_RMIServerImpl() throws Exception {
141: check("remote.rmi.RMIServerImpl");
142: }
143: }
|