use of javax.management.modelmbean.ModelMBeanAttributeInfo in project spring-framework by spring-projects.
the class MethodNameBasedMBeanInfoAssemblerMappedTests method testGetAgeIsReadOnly.
@Test
public void testGetAgeIsReadOnly() throws Exception {
ModelMBeanInfo info = getMBeanInfoFromAssembler();
ModelMBeanAttributeInfo attr = info.getAttribute(AGE_ATTRIBUTE);
assertTrue("Age is not readable", attr.isReadable());
assertFalse("Age is not writable", attr.isWritable());
}
use of javax.management.modelmbean.ModelMBeanAttributeInfo in project spring-framework by spring-projects.
the class MethodExclusionMBeanInfoAssemblerMappedTests method testGetAgeIsReadOnly.
@Test
public void testGetAgeIsReadOnly() throws Exception {
ModelMBeanInfo info = getMBeanInfoFromAssembler();
ModelMBeanAttributeInfo attr = info.getAttribute(AGE_ATTRIBUTE);
assertTrue("Age is not readable", attr.isReadable());
assertFalse("Age is not writable", attr.isWritable());
}
use of javax.management.modelmbean.ModelMBeanAttributeInfo in project spring-framework by spring-projects.
the class MethodExclusionMBeanInfoAssemblerNotMappedTests method testGetAgeIsReadOnly.
@Test
public void testGetAgeIsReadOnly() throws Exception {
ModelMBeanInfo info = getMBeanInfoFromAssembler();
ModelMBeanAttributeInfo attr = info.getAttribute(AGE_ATTRIBUTE);
assertTrue("Age is not readable", attr.isReadable());
assertTrue("Age is not writable", attr.isWritable());
}
use of javax.management.modelmbean.ModelMBeanAttributeInfo in project spring-framework by spring-projects.
the class MethodExclusionMBeanInfoAssemblerTests method testSupermanIsReadOnly.
@Test
public void testSupermanIsReadOnly() throws Exception {
ModelMBeanInfo info = getMBeanInfoFromAssembler();
ModelMBeanAttributeInfo attr = info.getAttribute("Superman");
assertTrue(attr.isReadable());
assertFalse(attr.isWritable());
}
use of javax.management.modelmbean.ModelMBeanAttributeInfo in project spring-framework by spring-projects.
the class AbstractMetadataAssemblerTests method testMetricDescription.
@Test
public void testMetricDescription() throws Exception {
ModelMBeanInfo inf = getMBeanInfoFromAssembler();
ModelMBeanAttributeInfo metric = inf.getAttribute(QUEUE_SIZE_METRIC);
ModelMBeanOperationInfo operation = inf.getOperation("getQueueSize");
assertEquals("The description for the queue size metric is incorrect", "The QueueSize metric", metric.getDescription());
assertEquals("The description for the getter operation of the queue size metric is incorrect", "The QueueSize metric", operation.getDescription());
}
Aggregations