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 OptionalRemoteJMXComplianceTestCase extends
022: ComplianceTestCase {
023: public OptionalRemoteJMXComplianceTestCase(String s) {
024: super (s);
025: }
026:
027: protected ClassLoader createClassLoader()
028: throws MalformedURLException {
029: return createOptionalRemoteJMXRIWithTestsClassLoader();
030: }
031:
032: protected JarFile loadJar() throws IOException {
033: File rjmx = new File("dist/test/jmxremote_optional.jar");
034: if (!rjmx.exists())
035: fail("JMX Optional Remote jar is not available");
036: JarFile jar = new JarFile(rjmx);
037: return jar;
038: }
039:
040: public void test_remote_generic_ConnectionClosedException()
041: throws Exception {
042: check("remote.generic.ConnectionClosedException");
043: }
044:
045: public void test_remote_generic_GenericConnector() throws Exception {
046: check("remote.generic.GenericConnector");
047: }
048:
049: public void test_remote_generic_GenericConnectorServer()
050: throws Exception {
051: check("remote.generic.GenericConnectorServer");
052: }
053:
054: public void test_remote_generic_MessageConnection()
055: throws Exception {
056: check("remote.generic.MessageConnection");
057: }
058:
059: public void test_remote_generic_MessageConnectionServer()
060: throws Exception {
061: check("remote.generic.MessageConnectionServer");
062: }
063:
064: public void test_remote_generic_ObjectWrapping() throws Exception {
065: check("remote.generic.ObjectWrapping");
066: }
067:
068: public void test_remote_jmxmp_JMXMPConnector() throws Exception {
069: check("remote.jmxmp.JMXMPConnector");
070: }
071:
072: public void test_remote_jmxmp_JMXMPConnectorServer()
073: throws Exception {
074: check("remote.jmxmp.JMXMPConnectorServer");
075: }
076:
077: public void test_remote_message_CloseMessage() throws Exception {
078: check("remote.message.CloseMessage");
079: }
080:
081: public void test_remote_message_HandshakeBeginMessage()
082: throws Exception {
083: check("remote.message.HandshakeBeginMessage");
084: }
085:
086: public void test_remote_message_HandshakeEndMessage()
087: throws Exception {
088: check("remote.message.HandshakeEndMessage");
089: }
090:
091: public void test_remote_message_HandshakeErrorMessage()
092: throws Exception {
093: check("remote.message.HandshakeErrorMessage");
094: }
095:
096: public void test_remote_message_JMXMPMessage() throws Exception {
097: check("remote.message.JMXMPMessage");
098: }
099:
100: public void test_remote_message_MBeanServerRequestMessage()
101: throws Exception {
102: check("remote.message.MBeanServerRequestMessage");
103: }
104:
105: public void test_remote_message_MBeanServerResponseMessage()
106: throws Exception {
107: check("remote.message.MBeanServerResponseMessage");
108: }
109:
110: public void test_remote_message_Message() throws Exception {
111: check("remote.message.Message");
112: }
113:
114: public void test_remote_message_NotificationRequestMessage()
115: throws Exception {
116: check("remote.message.NotificationRequestMessage");
117: }
118:
119: public void test_remote_message_NotificationResponseMessage()
120: throws Exception {
121: check("remote.message.NotificationResponseMessage");
122: }
123:
124: public void test_remote_message_ProfileMessage() throws Exception {
125: check("remote.message.ProfileMessage");
126: }
127:
128: public void test_remote_message_SASLMessage() throws Exception {
129: check("remote.message.SASLMessage");
130: }
131:
132: public void test_remote_message_TLSMessage() throws Exception {
133: check("remote.message.TLSMessage");
134: }
135: }
|