/**
* Verify that notification which RequiredModelMBean is emitted is correct.
*/
private void verifyNotifivation(
AttributeChangeNotification attributeChangeNotification,
ModelMBeanAttributeInfo attributeInfo) {
assertEquals(attributeChangeNotification.getAttributeName(),
attributeInfo.getName());
assertEquals(attributeChangeNotification.getAttributeType(),
attributeInfo.getType());
assertEquals(attributeChangeNotification.getNewValue(), "new value");
assertNull(attributeChangeNotification.getOldValue());
assertEquals(attributeChangeNotification.getType(),
"jmx.attribute.change");
assertEquals(attributeChangeNotification.getMessage(),
"AttributeChangeDetected");
assertEquals(attributeChangeNotification.getSequenceNumber(), 1);
}
NotificationLoggingTest.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:freeVM
作者:
评论列表
文章目录