@Test public void testRemove() { final KnowledgeSessionListItemPresenter parentPresenter = mock(KnowledgeSessionListItemPresenter.class); final ListenersListPresenter listPresenter = mock(ListenersListPresenter.class); listenerListItemPresenter.parentPresenter = parentPresenter; listenerListItemPresenter.setListPresenter(listPresenter); listenerListItemPresenter.remove(); verify(listPresenter).remove(eq(listenerListItemPresenter)); verify(parentPresenter).fireChangeEvent(); verify(parentPresenter).signalListenerAddedOrRemoved(); }
@Override public void remove() { super.remove(); parentPresenter.signalListenerAddedOrRemoved(); parentPresenter.fireChangeEvent(); }
ListenerListItemPresenter extends ListItemPresenter<ListenerModel, KnowledgeSessionListItemPresenter, ListenerListItemPresenter.View> { @Override public void remove() { super.remove(); parentPresenter.signalListenerAddedOrRemoved(); parentPresenter.fireChangeEvent(); } }
ListenerListItemPresenter extends ListItemPresenter<ListenerModel, KnowledgeSessionListItemPresenter, ListenerListItemPresenter.View> { @Override public void remove() { super.remove(); parentPresenter.signalListenerAddedOrRemoved(); parentPresenter.fireChangeEvent(); } @Inject  ListenerListItemPresenter(final View view); }
ListenerListItemPresenter extends ListItemPresenter<ListenerModel, KnowledgeSessionListItemPresenter, ListenerListItemPresenter.View> { @Override public void remove() { super.remove(); parentPresenter.signalListenerAddedOrRemoved(); parentPresenter.fireChangeEvent(); } @Inject  ListenerListItemPresenter(final View view); @Override ListenerListItemPresenter setup(final ListenerModel listenerModel,
                                           final KnowledgeSessionListItemPresenter parentPresenter); void setType(final String type); @Override void remove(); @Override ListenerModel getObject(); }
ListenerListItemPresenter extends ListItemPresenter<ListenerModel, KnowledgeSessionListItemPresenter, ListenerListItemPresenter.View> { @Override public void remove() { super.remove(); parentPresenter.signalListenerAddedOrRemoved(); parentPresenter.fireChangeEvent(); } @Inject  ListenerListItemPresenter(final View view); @Override ListenerListItemPresenter setup(final ListenerModel listenerModel,
                                           final KnowledgeSessionListItemPresenter parentPresenter); void setType(final String type); @Override void remove(); @Override ListenerModel getObject();  }