User: juhalindfors Date: 02/02/28 12:06:20 Modified: src/main/test/performance/standard StandardSUITE.java Log: if implementation is "JBossMX" run also the speed test with optimized dispatcher Revision Changes Path 1.2 +26 -0 jmx/src/main/test/performance/standard/StandardSUITE.java Index: StandardSUITE.java =================================================================== RCS file: /cvsroot/jboss/jmx/src/main/test/performance/standard/StandardSUITE.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- StandardSUITE.java 23 Jan 2002 21:45:44 -0000 1.1 +++ StandardSUITE.java 28 Feb 2002 20:06:20 -0000 1.2 @@ -10,6 +10,17 @@ import junit.framework.Test; import junit.framework.TestSuite; +import javax.management.JMException; +import javax.management.MBeanServer; +import javax.management.MBeanServerFactory; +import javax.management.ObjectName; + +/** + * Suite of performance tests for Standard MBeans. + * + * @author <a href="mailto:[EMAIL PROTECTED]">Juha Lindfors</a>. + * @version $Revision: 1.2 $ + */ public class StandardSUITE extends TestSuite { public static void main(String[] args) @@ -21,6 +32,21 @@ { TestSuite suite = new TestSuite("Performance tests for Standard MBeans"); + try + { + MBeanServer server = MBeanServerFactory.createMBeanServer(); + + if ("JBossMX".equalsIgnoreCase((String)server.getAttribute(new ObjectName("JMImplementation:type=MBeanServerDelegate"), "ImplementationName"))) + { + suite.addTest(new TestSuite(OptimizedInvocationTEST.class)); + } + } + catch (JMException e) + { + System.err.println("Unable to run optimized tests: " + e.toString()); + } + + suite.addTest(new TestSuite(InvocationTEST.class)); return suite;
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
