Search in sources :

Example 1 with BadInherited

use of org.activiti.management.jmx.testMbeans.BadInherited in project Activiti by Activiti.

the class MBeanInfoAssemblerTest method testInherited.

@Test
public void testInherited() throws JMException {
    ModelMBeanInfo beanInfo = mbeanInfoAssembler.getMBeanInfo(new BadInherited(), null, "someName");
    assertNotNull(beanInfo);
    assertNotNull(beanInfo.getAttributes());
    assertEquals(2, beanInfo.getAttributes().length);
    assertNotNull(beanInfo.getOperations());
    assertEquals(3, beanInfo.getOperations().length);
}
Also used : BadInherited(org.activiti.management.jmx.testMbeans.BadInherited) ModelMBeanInfo(javax.management.modelmbean.ModelMBeanInfo) Test(org.junit.Test)

Aggregations

ModelMBeanInfo (javax.management.modelmbean.ModelMBeanInfo)1 BadInherited (org.activiti.management.jmx.testMbeans.BadInherited)1 Test (org.junit.Test)1