1 22 package test.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.ComplianceSUITE.suite()); 70 return suite; 71 } 72 } 73 | Popular Tags |