/**
* Test for the method
* isNotificationEnabled(javax.management.Notification)
*
* @see javax.management.NotificationFilterSupport#isNotificationEnabled(javax.management.Notification)
*/
public final void testIsNotificationEnabled() {
Notification n1 = new AttributeChangeNotification(hello, 1, 1, null,
null, null, null, null);
Notification n2 = new Notification(Hello.SAY_HELLO_INVOKED, "src", 1);
NotificationFilterSupport f = new NotificationFilterSupport();
f.enableType(Hello.SAY_HELLO_INVOKED);
assertFalse("The AttributeChangeNotification should be disabled!", f
.isNotificationEnabled(n1));
assertTrue("The SAY_HELLO_INVOKED notification should be enabled!", f
.isNotificationEnabled(n2));
}
NotificationFilterSupportTest.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:freeVM
作者:
评论列表
文章目录