Search in sources :

Example 1 with TestDynamicMBean

use of org.springframework.jmx.export.TestDynamicMBean in project spring-framework by spring-projects.

the class JmxUtilsTests method testIsMBeanWithDynamicMBean.

@Test
public void testIsMBeanWithDynamicMBean() throws Exception {
    DynamicMBean mbean = new TestDynamicMBean();
    assertTrue("Dynamic MBean not detected correctly", JmxUtils.isMBean(mbean.getClass()));
}
Also used : DynamicMBean(javax.management.DynamicMBean) TestDynamicMBean(org.springframework.jmx.export.TestDynamicMBean) TestDynamicMBean(org.springframework.jmx.export.TestDynamicMBean) Test(org.junit.Test)

Aggregations

DynamicMBean (javax.management.DynamicMBean)1 Test (org.junit.Test)1 TestDynamicMBean (org.springframework.jmx.export.TestDynamicMBean)1