@Test public void testRemove() { final KnowledgeSessionsModal parentPresenter = mock(KnowledgeSessionsModal.class); final KnowledgeBasesListPresenter listPresenter = mock(KnowledgeBasesListPresenter.class); knowledgeSessionListItemPresenter.parentPresenter = parentPresenter; knowledgeSessionListItemPresenter.setListPresenter(listPresenter); knowledgeSessionListItemPresenter.remove(); verify(listPresenter).remove(eq(knowledgeSessionListItemPresenter)); verify(parentPresenter).signalKnowledgeBaseAddedOrRemoved(); }
@Override public void remove() { super.remove(); parentPresenter.signalKnowledgeBaseAddedOrRemoved(); }
KnowledgeSessionListItemPresenter extends ListItemPresenter<KSessionModel, KnowledgeSessionsModal, KnowledgeSessionListItemPresenter.View> { @Override public void remove() { super.remove(); parentPresenter.signalKnowledgeBaseAddedOrRemoved(); } }
KnowledgeSessionListItemPresenter extends ListItemPresenter<KSessionModel, KnowledgeSessionsModal, KnowledgeSessionListItemPresenter.View> { @Override public void remove() { super.remove(); parentPresenter.signalKnowledgeBaseAddedOrRemoved(); } @Inject  KnowledgeSessionListItemPresenter(final View view,
                                             final Event<DefaultKnowledgeSessionChange> defaultKnowledgeSessionChangeEvent,
                                             final WorkItemHandlersListPresenter workItemHandlersListPresenter,
                                             final ListenersListPresenter listenersListPresenter); }
KnowledgeSessionListItemPresenter extends ListItemPresenter<KSessionModel, KnowledgeSessionsModal, KnowledgeSessionListItemPresenter.View> { @Override public void remove() { super.remove(); parentPresenter.signalKnowledgeBaseAddedOrRemoved(); } @Inject  KnowledgeSessionListItemPresenter(final View view,
                                             final Event<DefaultKnowledgeSessionChange> defaultKnowledgeSessionChangeEvent,
                                             final WorkItemHandlersListPresenter workItemHandlersListPresenter,
                                             final ListenersListPresenter listenersListPresenter); @Override KnowledgeSessionListItemPresenter setup(final KSessionModel kSessionModel,
                                                   final KnowledgeSessionsModal parentPresenter); @Override void remove(); @Override KSessionModel getObject(); void setName(final String name); void setType(final String type); void addListener(); void addWorkItemHandler(); void fireChangeEvent(); void closeAllExpandableListItems(); void signalWorkItemHandlerAddedOrRemoved(); void signalListenerAddedOrRemoved(); void setDefault(final boolean isDefault); void onDefaultKnowledgeSessionChanged(@Observes final DefaultKnowledgeSessionChange event); }
KnowledgeSessionListItemPresenter extends ListItemPresenter<KSessionModel, KnowledgeSessionsModal, KnowledgeSessionListItemPresenter.View> { @Override public void remove() { super.remove(); parentPresenter.signalKnowledgeBaseAddedOrRemoved(); } @Inject  KnowledgeSessionListItemPresenter(final View view,
                                             final Event<DefaultKnowledgeSessionChange> defaultKnowledgeSessionChangeEvent,
                                             final WorkItemHandlersListPresenter workItemHandlersListPresenter,
                                             final ListenersListPresenter listenersListPresenter); @Override KnowledgeSessionListItemPresenter setup(final KSessionModel kSessionModel,
                                                   final KnowledgeSessionsModal parentPresenter); @Override void remove(); @Override KSessionModel getObject(); void setName(final String name); void setType(final String type); void addListener(); void addWorkItemHandler(); void fireChangeEvent(); void closeAllExpandableListItems(); void signalWorkItemHandlerAddedOrRemoved(); void signalListenerAddedOrRemoved(); void setDefault(final boolean isDefault); void onDefaultKnowledgeSessionChanged(@Observes final DefaultKnowledgeSessionChange event);  }