1 8 9 package test.javax.management.remote.compliance; 10 11 import java.io.File ; 12 import java.io.IOException ; 13 import java.net.MalformedURLException ; 14 import java.util.jar.JarFile ; 15 16 import test.javax.management.compliance.ComplianceTestCase; 17 18 21 public abstract class OptionalRemoteJMXComplianceTestCase extends ComplianceTestCase 22 { 23 public OptionalRemoteJMXComplianceTestCase(String s) 24 { 25 super(s); 26 } 27 28 protected ClassLoader createClassLoader() throws MalformedURLException 29 { 30 return createOptionalRemoteJMXRIWithTestsClassLoader(); 31 } 32 33 protected JarFile loadJar() throws IOException 34 { 35 File rjmx = new File ("dist/test/jmxremote_optional.jar"); 36 if (!rjmx.exists()) fail("JMX Optional Remote jar is not available"); 37 JarFile jar = new JarFile (rjmx); 38 return jar; 39 } 40 41 public void test_remote_generic_ConnectionClosedException() throws Exception 42 { 43 check("remote.generic.ConnectionClosedException"); 44 } 45 46 public void test_remote_generic_GenericConnector() throws Exception 47 { 48 check("remote.generic.GenericConnector"); 49 } 50 51 public void test_remote_generic_GenericConnectorServer() throws Exception 52 { 53 check("remote.generic.GenericConnectorServer"); 54 } 55 56 public void test_remote_generic_MessageConnection() throws Exception 57 { 58 check("remote.generic.MessageConnection"); 59 } 60 61 public void test_remote_generic_MessageConnectionServer() throws Exception 62 { 63 check("remote.generic.MessageConnectionServer"); 64 } 65 66 public void test_remote_generic_ObjectWrapping() throws Exception 67 { 68 check("remote.generic.ObjectWrapping"); 69 } 70 71 public void test_remote_jmxmp_JMXMPConnector() throws Exception 72 { 73 check("remote.jmxmp.JMXMPConnector"); 74 } 75 76 public void test_remote_jmxmp_JMXMPConnectorServer() throws Exception 77 { 78 check("remote.jmxmp.JMXMPConnectorServer"); 79 } 80 81 public void test_remote_message_CloseMessage() throws Exception 82 { 83 check("remote.message.CloseMessage"); 84 } 85 86 public void test_remote_message_HandshakeBeginMessage() throws Exception 87 { 88 check("remote.message.HandshakeBeginMessage"); 89 } 90 91 public void test_remote_message_HandshakeEndMessage() throws Exception 92 { 93 check("remote.message.HandshakeEndMessage"); 94 } 95 96 public void test_remote_message_HandshakeErrorMessage() throws Exception 97 { 98 check("remote.message.HandshakeErrorMessage"); 99 } 100 101 public void test_remote_message_JMXMPMessage() throws Exception 102 { 103 check("remote.message.JMXMPMessage"); 104 } 105 106 public void test_remote_message_MBeanServerRequestMessage() throws Exception 107 { 108 check("remote.message.MBeanServerRequestMessage"); 109 } 110 111 public void test_remote_message_MBeanServerResponseMessage() throws Exception 112 { 113 check("remote.message.MBeanServerResponseMessage"); 114 } 115 116 public void test_remote_message_Message() throws Exception 117 { 118 check("remote.message.Message"); 119 } 120 121 public void test_remote_message_NotificationRequestMessage() throws Exception 122 { 123 check("remote.message.NotificationRequestMessage"); 124 } 125 126 public void test_remote_message_NotificationResponseMessage() throws Exception 127 { 128 check("remote.message.NotificationResponseMessage"); 129 } 130 131 public void test_remote_message_ProfileMessage() throws Exception 132 { 133 check("remote.message.ProfileMessage"); 134 } 135 136 public void test_remote_message_SASLMessage() throws Exception 137 { 138 check("remote.message.SASLMessage"); 139 } 140 141 public void test_remote_message_TLSMessage() throws Exception 142 { 143 check("remote.message.TLSMessage"); 144 } 145 } 146 | Popular Tags |