NotificationLoggingTest.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:freeVM 作者:
/**
 * 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);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号