1   /*
2    * $Id: YourKitProfilerTestCase.java 11234 2008-03-06 23:44:34Z tcarlson $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  package org.mule.management.mbeans;
11  
12  import org.mule.management.AbstractMuleJmxTestCase;
13  import org.mule.module.management.mbean.YourKitProfilerServiceMBean;
14  
15  import java.lang.reflect.Method;
16  
17  
18  public class YourKitProfilerTestCase extends AbstractMuleJmxTestCase
19  {
20  
21      /**
22       * Each method doen't have to be more than 32
23       * There is a need for intergration with HQ
24       *
25       * @throws Exception
26       */
27      public void testMethodLenght() throws Exception
28      {
29          Method[] methods = YourKitProfilerServiceMBean.class.getMethods();
30          for (int i = 0; i < methods.length; i++)
31          {
32              assertTrue(methods[i].getName(),methods[i].getName().length() < 32);
33          }
34  
35      }
36  
37  }