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