@Test public void testOnOpenItemClicked() throws Exception { Notification.OpenNotificationHandler openNotificationHandler = mock(Notification.OpenNotificationHandler.class); Notification notification = new Notification("test message", INFO, openNotificationHandler); assertEquals(notification.isRead(), false); manager.onOpenItemClicked(notification); assertEquals(notification.isRead(), true); verify(openNotificationHandler).onOpenClicked(); }
@Override public void onOpenItemClicked(@Nonnull Notification notification) { onOpenClicked(notification); }
NotificationManagerImpl extends BasePresenter implements NotificationManager,
                                                                      NotificationItem.ActionDelegate,
                                                                      Notification.NotificationObserver,
                                                                      NotificationManagerView.ActionDelegate,
                                                                      NotificationMessageStack.ActionDelegate,
                                                                      HasView { @Override public void onOpenItemClicked(@Nonnull Notification notification) { onOpenClicked(notification); } }
NotificationManagerImpl extends BasePresenter implements NotificationManager,
                                                                      NotificationItem.ActionDelegate,
                                                                      Notification.NotificationObserver,
                                                                      NotificationManagerView.ActionDelegate,
                                                                      NotificationMessageStack.ActionDelegate,
                                                                      HasView { @Override public void onOpenItemClicked(@Nonnull Notification notification) { onOpenClicked(notification); } @Inject  NotificationManagerImpl(EventBus eventBus,
                                   NotificationManagerView view,
                                   DialogFactory dialogFactory,
                                   final NotificationContainer notificationContainer,
                                   final NotificationMessageStack notificationMessageStack); }
NotificationManagerImpl extends BasePresenter implements NotificationManager,
                                                                      NotificationItem.ActionDelegate,
                                                                      Notification.NotificationObserver,
                                                                      NotificationManagerView.ActionDelegate,
                                                                      NotificationMessageStack.ActionDelegate,
                                                                      HasView { @Override public void onOpenItemClicked(@Nonnull Notification notification) { onOpenClicked(notification); } @Inject  NotificationManagerImpl(EventBus eventBus,
                                   NotificationManagerView view,
                                   DialogFactory dialogFactory,
                                   final NotificationContainer notificationContainer,
                                   final NotificationMessageStack notificationMessageStack); @Override View getView(); @Override void onValueChanged(); @Override void showNotification(@Nonnull Notification notification); @Override void showInfo(@Nonnull String message); @Override void showWarning(@Nonnull String message); @Override void showError(@Nonnull String message); void removeNotification(@Nonnull Notification notification); @Override void onOpenMessageClicked(@Nonnull Notification notification); @Override void onOpenItemClicked(@Nonnull Notification notification); @Override void onCloseMessageClicked(@Nonnull Notification notification); @Override void onCloseItemClicked(@Nonnull Notification notification); @Nonnull @Override String getTitle(); @Nullable @Override ImageResource getTitleImage(); @Nullable @Override SVGResource getTitleSVGImage(); @Override IsWidget getTitleWidget(); @Nullable @Override String getTitleToolTip(); @Override void go(AcceptsOneWidget container); }
NotificationManagerImpl extends BasePresenter implements NotificationManager,
                                                                      NotificationItem.ActionDelegate,
                                                                      Notification.NotificationObserver,
                                                                      NotificationManagerView.ActionDelegate,
                                                                      NotificationMessageStack.ActionDelegate,
                                                                      HasView { @Override public void onOpenItemClicked(@Nonnull Notification notification) { onOpenClicked(notification); } @Inject  NotificationManagerImpl(EventBus eventBus,
                                   NotificationManagerView view,
                                   DialogFactory dialogFactory,
                                   final NotificationContainer notificationContainer,
                                   final NotificationMessageStack notificationMessageStack); @Override View getView(); @Override void onValueChanged(); @Override void showNotification(@Nonnull Notification notification); @Override void showInfo(@Nonnull String message); @Override void showWarning(@Nonnull String message); @Override void showError(@Nonnull String message); void removeNotification(@Nonnull Notification notification); @Override void onOpenMessageClicked(@Nonnull Notification notification); @Override void onOpenItemClicked(@Nonnull Notification notification); @Override void onCloseMessageClicked(@Nonnull Notification notification); @Override void onCloseItemClicked(@Nonnull Notification notification); @Nonnull @Override String getTitle(); @Nullable @Override ImageResource getTitleImage(); @Nullable @Override SVGResource getTitleSVGImage(); @Override IsWidget getTitleWidget(); @Nullable @Override String getTitleToolTip(); @Override void go(AcceptsOneWidget container);  }