1 22 package org.jboss.test.jmx.compliance; 23 24 import junit.framework.Test; 25 import junit.framework.TestSuite; 26 27 46 47 public class ComplianceSUITE extends TestSuite 48 { 49 public static void main(String [] args) 50 { 51 try 52 { 53 Class trace = Thread.currentThread().getContextClassLoader().loadClass("com.sun.jmx.trace.TraceImplementation"); 55 java.lang.reflect.Method init = trace.getMethod("init", new Class [] { Integer.TYPE }); 56 init.invoke(null, new Object [] { new Integer (System.getProperty("com.sun.jmx.trace.level")) }); 57 } 58 catch (Exception ignored) 59 { 60 } 61 62 junit.textui.TestRunner.run(suite()); 63 } 64 65 public static Test suite() 66 { 67 TestSuite suite = new TestSuite("All Compliance Tests"); 68 69 suite.addTest(org.jboss.test.jmx.compliance.objectname.ObjectNameSUITE.suite()); 70 suite.addTest(org.jboss.test.jmx.compliance.standard.StandardSUITE.suite()); 71 suite.addTest(org.jboss.test.jmx.compliance.registration.RegistrationSUITE.suite()); 72 suite.addTest(org.jboss.test.jmx.compliance.server.ServerSUITE.suite()); 73 suite.addTest(org.jboss.test.jmx.compliance.modelmbean.ModelMBeanSUITE.suite()); 74 suite.addTest(org.jboss.test.jmx.compliance.notcompliant.NCMBeanSUITE.suite()); 75 suite.addTest(org.jboss.test.jmx.compliance.loading.LoadingSUITE.suite()); 76 suite.addTest(org.jboss.test.jmx.compliance.varia.VariaSUITE.suite()); 77 suite.addTest(org.jboss.test.jmx.compliance.query.QuerySUITE.suite()); 78 suite.addTest(org.jboss.test.jmx.compliance.metadata.MetaDataSUITE.suite()); 79 suite.addTest(org.jboss.test.jmx.compliance.relation.RelationSUITE.suite()); 80 suite.addTest(org.jboss.test.jmx.compliance.openmbean.OpenMBeanSUITE.suite()); 81 suite.addTest(org.jboss.test.jmx.compliance.notification.NotificationSUITE.suite()); 82 return suite; 83 } 84 } 85 | Popular Tags |