use of com.sun.appserv.management.base.NotificationService in project Payara by payara.
the class NotificationServiceTest method testGetFromEmpty.
public void testGetFromEmpty() throws Exception {
final NotificationService proxy = create();
assert (proxy.getListeneeSet().size() == 0);
final Object id = proxy.createBuffer(10, null);
final Map<String, Object> result = proxy.getBufferNotifications(id, 0);
final Notification[] notifs = (Notification[]) result.get(proxy.NOTIFICATIONS_KEY);
assertEquals(0, notifs.length);
}
Aggregations